Commit 9e5e9b7a authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

hwmon: remove use of __devexit_p

CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.
Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Alistair John Strachan <alistair@devzero.co.uk>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Juerg Haefliger <juergh@gmail.com>
Cc: Andreas Herrmann <herrmann.der.user@googlemail.com>
Cc: Clemens Ladisch <clemens@ladisch.de>
Cc: Rudolf Marek <r.marek@assembler.cz>
Cc: Jim Cromie <jim.cromie@gmail.com>
Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
Cc: Roger Lucas <vt8231@hiddenengine.co.uk>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 415ec69f
...@@ -1545,7 +1545,7 @@ static struct platform_driver abituguru_driver = { ...@@ -1545,7 +1545,7 @@ static struct platform_driver abituguru_driver = {
.pm = ABIT_UGURU_PM, .pm = ABIT_UGURU_PM,
}, },
.probe = abituguru_probe, .probe = abituguru_probe,
.remove = __devexit_p(abituguru_remove), .remove = abituguru_remove,
}; };
static int __init abituguru_detect(void) static int __init abituguru_detect(void)
......
...@@ -1171,7 +1171,7 @@ static struct platform_driver abituguru3_driver = { ...@@ -1171,7 +1171,7 @@ static struct platform_driver abituguru3_driver = {
.pm = ABIT_UGURU3_PM .pm = ABIT_UGURU3_PM
}, },
.probe = abituguru3_probe, .probe = abituguru3_probe,
.remove = __devexit_p(abituguru3_remove), .remove = abituguru3_remove,
}; };
static int __init abituguru3_dmi_detect(void) static int __init abituguru3_dmi_detect(void)
......
...@@ -159,7 +159,7 @@ static struct spi_driver ad7314_driver = { ...@@ -159,7 +159,7 @@ static struct spi_driver ad7314_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = ad7314_probe, .probe = ad7314_probe,
.remove = __devexit_p(ad7314_remove), .remove = ad7314_remove,
.id_table = ad7314_id, .id_table = ad7314_id,
}; };
......
...@@ -246,7 +246,7 @@ static struct i2c_driver ad7414_driver = { ...@@ -246,7 +246,7 @@ static struct i2c_driver ad7414_driver = {
.name = "ad7414", .name = "ad7414",
}, },
.probe = ad7414_probe, .probe = ad7414_probe,
.remove = __devexit_p(ad7414_remove), .remove = ad7414_remove,
.id_table = ad7414_id, .id_table = ad7414_id,
}; };
......
...@@ -240,7 +240,7 @@ static struct spi_driver adcxx_driver = { ...@@ -240,7 +240,7 @@ static struct spi_driver adcxx_driver = {
}, },
.id_table = adcxx_ids, .id_table = adcxx_ids,
.probe = adcxx_probe, .probe = adcxx_probe,
.remove = __devexit_p(adcxx_remove), .remove = adcxx_remove,
}; };
module_spi_driver(adcxx_driver); module_spi_driver(adcxx_driver);
......
...@@ -241,7 +241,7 @@ static struct spi_driver ads7871_driver = { ...@@ -241,7 +241,7 @@ static struct spi_driver ads7871_driver = {
}, },
.probe = ads7871_probe, .probe = ads7871_probe,
.remove = __devexit_p(ads7871_remove), .remove = ads7871_remove,
}; };
module_spi_driver(ads7871_driver); module_spi_driver(ads7871_driver);
......
...@@ -337,7 +337,7 @@ static struct i2c_driver adt7411_driver = { ...@@ -337,7 +337,7 @@ static struct i2c_driver adt7411_driver = {
.name = "adt7411", .name = "adt7411",
}, },
.probe = adt7411_probe, .probe = adt7411_probe,
.remove = __devexit_p(adt7411_remove), .remove = adt7411_remove,
.id_table = adt7411_id, .id_table = adt7411_id,
.detect = adt7411_detect, .detect = adt7411_detect,
.address_list = normal_i2c, .address_list = normal_i2c,
......
...@@ -608,7 +608,7 @@ static struct platform_driver coretemp_driver = { ...@@ -608,7 +608,7 @@ static struct platform_driver coretemp_driver = {
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = coretemp_probe, .probe = coretemp_probe,
.remove = __devexit_p(coretemp_remove), .remove = coretemp_remove,
}; };
static int __cpuinit coretemp_device_add(unsigned int cpu) static int __cpuinit coretemp_device_add(unsigned int cpu)
......
...@@ -328,7 +328,7 @@ static int __devexit da9052_hwmon_remove(struct platform_device *pdev) ...@@ -328,7 +328,7 @@ static int __devexit da9052_hwmon_remove(struct platform_device *pdev)
static struct platform_driver da9052_hwmon_driver = { static struct platform_driver da9052_hwmon_driver = {
.probe = da9052_hwmon_probe, .probe = da9052_hwmon_probe,
.remove = __devexit_p(da9052_hwmon_remove), .remove = da9052_hwmon_remove,
.driver = { .driver = {
.name = "da9052-hwmon", .name = "da9052-hwmon",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -2734,7 +2734,7 @@ static struct platform_driver dme1737_isa_driver = { ...@@ -2734,7 +2734,7 @@ static struct platform_driver dme1737_isa_driver = {
.name = "dme1737", .name = "dme1737",
}, },
.probe = dme1737_isa_probe, .probe = dme1737_isa_probe,
.remove = __devexit_p(dme1737_isa_remove), .remove = dme1737_isa_remove,
}; };
/* --------------------------------------------------------------------- /* ---------------------------------------------------------------------
......
...@@ -1510,7 +1510,7 @@ static struct platform_driver f71805f_driver = { ...@@ -1510,7 +1510,7 @@ static struct platform_driver f71805f_driver = {
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = f71805f_probe, .probe = f71805f_probe,
.remove = __devexit_p(f71805f_remove), .remove = f71805f_remove,
}; };
static int __init f71805f_device_add(unsigned short address, static int __init f71805f_device_add(unsigned short address,
......
...@@ -256,7 +256,7 @@ static struct pci_driver fam15h_power_driver = { ...@@ -256,7 +256,7 @@ static struct pci_driver fam15h_power_driver = {
.name = "fam15h_power", .name = "fam15h_power",
.id_table = fam15h_power_id_table, .id_table = fam15h_power_id_table,
.probe = fam15h_power_probe, .probe = fam15h_power_probe,
.remove = __devexit_p(fam15h_power_remove), .remove = fam15h_power_remove,
.resume = fam15h_power_resume, .resume = fam15h_power_resume,
}; };
......
...@@ -626,7 +626,7 @@ static SIMPLE_DEV_PM_OPS(gpio_fan_pm, gpio_fan_suspend, gpio_fan_resume); ...@@ -626,7 +626,7 @@ static SIMPLE_DEV_PM_OPS(gpio_fan_pm, gpio_fan_suspend, gpio_fan_resume);
static struct platform_driver gpio_fan_driver = { static struct platform_driver gpio_fan_driver = {
.probe = gpio_fan_probe, .probe = gpio_fan_probe,
.remove = __devexit_p(gpio_fan_remove), .remove = gpio_fan_remove,
.driver = { .driver = {
.name = "gpio-fan", .name = "gpio-fan",
.pm = GPIO_FAN_PM, .pm = GPIO_FAN_PM,
......
...@@ -283,7 +283,7 @@ MODULE_DEVICE_TABLE(i2c, hih6130_id); ...@@ -283,7 +283,7 @@ MODULE_DEVICE_TABLE(i2c, hih6130_id);
static struct i2c_driver hih6130_driver = { static struct i2c_driver hih6130_driver = {
.driver.name = "hih6130", .driver.name = "hih6130",
.probe = hih6130_probe, .probe = hih6130_probe,
.remove = __devexit_p(hih6130_remove), .remove = hih6130_remove,
.id_table = hih6130_id, .id_table = hih6130_id,
}; };
......
...@@ -587,7 +587,7 @@ static struct platform_driver i5k_amb_driver = { ...@@ -587,7 +587,7 @@ static struct platform_driver i5k_amb_driver = {
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = i5k_amb_probe, .probe = i5k_amb_probe,
.remove = __devexit_p(i5k_amb_remove), .remove = i5k_amb_remove,
}; };
static int __init i5k_amb_init(void) static int __init i5k_amb_init(void)
......
...@@ -443,7 +443,7 @@ static struct platform_driver it87_driver = { ...@@ -443,7 +443,7 @@ static struct platform_driver it87_driver = {
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = it87_probe, .probe = it87_probe,
.remove = __devexit_p(it87_remove), .remove = it87_remove,
}; };
static ssize_t show_in(struct device *dev, struct device_attribute *attr, static ssize_t show_in(struct device *dev, struct device_attribute *attr,
......
...@@ -184,7 +184,7 @@ static int __devexit jz4740_hwmon_remove(struct platform_device *pdev) ...@@ -184,7 +184,7 @@ static int __devexit jz4740_hwmon_remove(struct platform_device *pdev)
static struct platform_driver jz4740_hwmon_driver = { static struct platform_driver jz4740_hwmon_driver = {
.probe = jz4740_hwmon_probe, .probe = jz4740_hwmon_probe,
.remove = __devexit_p(jz4740_hwmon_remove), .remove = jz4740_hwmon_remove,
.driver = { .driver = {
.name = "jz4740-hwmon", .name = "jz4740-hwmon",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -219,7 +219,7 @@ static struct pci_driver k10temp_driver = { ...@@ -219,7 +219,7 @@ static struct pci_driver k10temp_driver = {
.name = "k10temp", .name = "k10temp",
.id_table = k10temp_id_table, .id_table = k10temp_id_table,
.probe = k10temp_probe, .probe = k10temp_probe,
.remove = __devexit_p(k10temp_remove), .remove = k10temp_remove,
}; };
module_pci_driver(k10temp_driver); module_pci_driver(k10temp_driver);
...@@ -324,7 +324,7 @@ static struct pci_driver k8temp_driver = { ...@@ -324,7 +324,7 @@ static struct pci_driver k8temp_driver = {
.name = "k8temp", .name = "k8temp",
.id_table = k8temp_ids, .id_table = k8temp_ids,
.probe = k8temp_probe, .probe = k8temp_probe,
.remove = __devexit_p(k8temp_remove), .remove = k8temp_remove,
}; };
module_pci_driver(k8temp_driver); module_pci_driver(k8temp_driver);
......
...@@ -207,7 +207,7 @@ static struct spi_driver lm70_driver = { ...@@ -207,7 +207,7 @@ static struct spi_driver lm70_driver = {
}, },
.id_table = lm70_ids, .id_table = lm70_ids,
.probe = lm70_probe, .probe = lm70_probe,
.remove = __devexit_p(lm70_remove), .remove = lm70_remove,
}; };
module_spi_driver(lm70_driver); module_spi_driver(lm70_driver);
......
...@@ -903,7 +903,7 @@ static struct platform_driver lm78_isa_driver = { ...@@ -903,7 +903,7 @@ static struct platform_driver lm78_isa_driver = {
.name = "lm78", .name = "lm78",
}, },
.probe = lm78_isa_probe, .probe = lm78_isa_probe,
.remove = __devexit_p(lm78_isa_remove), .remove = lm78_isa_remove,
}; };
/* return 1 if a supported chip is found, 0 otherwise */ /* return 1 if a supported chip is found, 0 otherwise */
......
...@@ -283,7 +283,7 @@ static struct spi_driver max1111_driver = { ...@@ -283,7 +283,7 @@ static struct spi_driver max1111_driver = {
}, },
.id_table = max1111_ids, .id_table = max1111_ids,
.probe = max1111_probe, .probe = max1111_probe,
.remove = __devexit_p(max1111_remove), .remove = max1111_remove,
}; };
module_spi_driver(max1111_driver); module_spi_driver(max1111_driver);
......
...@@ -339,7 +339,7 @@ static struct platform_driver max197_driver = { ...@@ -339,7 +339,7 @@ static struct platform_driver max197_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = max197_probe, .probe = max197_probe,
.remove = __devexit_p(max197_remove), .remove = max197_remove,
.id_table = max197_device_ids, .id_table = max197_device_ids,
}; };
module_platform_driver(max197_driver); module_platform_driver(max197_driver);
......
...@@ -265,7 +265,7 @@ static const struct platform_device_id mc13783_adc_idtable[] = { ...@@ -265,7 +265,7 @@ static const struct platform_device_id mc13783_adc_idtable[] = {
MODULE_DEVICE_TABLE(platform, mc13783_adc_idtable); MODULE_DEVICE_TABLE(platform, mc13783_adc_idtable);
static struct platform_driver mc13783_adc_driver = { static struct platform_driver mc13783_adc_driver = {
.remove = __devexit_p(mc13783_adc_remove), .remove = mc13783_adc_remove,
.driver = { .driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = DRIVER_NAME, .name = DRIVER_NAME,
......
...@@ -419,7 +419,7 @@ static struct platform_driver ntc_thermistor_driver = { ...@@ -419,7 +419,7 @@ static struct platform_driver ntc_thermistor_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = ntc_thermistor_probe, .probe = ntc_thermistor_probe,
.remove = __devexit_p(ntc_thermistor_remove), .remove = ntc_thermistor_remove,
.id_table = ntc_thermistor_id, .id_table = ntc_thermistor_id,
}; };
......
...@@ -248,7 +248,7 @@ static struct platform_driver pc87360_driver = { ...@@ -248,7 +248,7 @@ static struct platform_driver pc87360_driver = {
.name = "pc87360", .name = "pc87360",
}, },
.probe = pc87360_probe, .probe = pc87360_probe,
.remove = __devexit_p(pc87360_remove), .remove = pc87360_remove,
}; };
/* /*
......
...@@ -1158,7 +1158,7 @@ static struct platform_driver pc87427_driver = { ...@@ -1158,7 +1158,7 @@ static struct platform_driver pc87427_driver = {
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = pc87427_probe, .probe = pc87427_probe,
.remove = __devexit_p(pc87427_remove), .remove = pc87427_remove,
}; };
static int __init pc87427_device_add(const struct pc87427_sio_data *sio_data) static int __init pc87427_device_add(const struct pc87427_sio_data *sio_data)
......
...@@ -386,7 +386,7 @@ static struct platform_driver s3c_hwmon_driver = { ...@@ -386,7 +386,7 @@ static struct platform_driver s3c_hwmon_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = s3c_hwmon_probe, .probe = s3c_hwmon_probe,
.remove = __devexit_p(s3c_hwmon_remove), .remove = s3c_hwmon_remove,
}; };
module_platform_driver(s3c_hwmon_driver); module_platform_driver(s3c_hwmon_driver);
......
...@@ -1043,7 +1043,7 @@ static struct platform_driver sht15_driver = { ...@@ -1043,7 +1043,7 @@ static struct platform_driver sht15_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = sht15_probe, .probe = sht15_probe,
.remove = __devexit_p(sht15_remove), .remove = sht15_remove,
.id_table = sht15_device_ids, .id_table = sht15_device_ids,
}; };
module_platform_driver(sht15_driver); module_platform_driver(sht15_driver);
......
...@@ -253,7 +253,7 @@ MODULE_DEVICE_TABLE(i2c, sht21_id); ...@@ -253,7 +253,7 @@ MODULE_DEVICE_TABLE(i2c, sht21_id);
static struct i2c_driver sht21_driver = { static struct i2c_driver sht21_driver = {
.driver.name = "sht21", .driver.name = "sht21",
.probe = sht21_probe, .probe = sht21_probe,
.remove = __devexit_p(sht21_remove), .remove = sht21_remove,
.id_table = sht21_id, .id_table = sht21_id,
}; };
......
...@@ -217,7 +217,7 @@ static struct platform_driver sis5595_driver = { ...@@ -217,7 +217,7 @@ static struct platform_driver sis5595_driver = {
.name = "sis5595", .name = "sis5595",
}, },
.probe = sis5595_probe, .probe = sis5595_probe,
.remove = __devexit_p(sis5595_remove), .remove = sis5595_remove,
}; };
/* 4 Voltages */ /* 4 Voltages */
......
...@@ -246,7 +246,7 @@ static struct platform_driver smsc47b397_driver = { ...@@ -246,7 +246,7 @@ static struct platform_driver smsc47b397_driver = {
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = smsc47b397_probe, .probe = smsc47b397_probe,
.remove = __devexit_p(smsc47b397_remove), .remove = smsc47b397_remove,
}; };
static int __devinit smsc47b397_probe(struct platform_device *pdev) static int __devinit smsc47b397_probe(struct platform_device *pdev)
......
...@@ -283,7 +283,7 @@ static struct i2c_driver tmp102_driver = { ...@@ -283,7 +283,7 @@ static struct i2c_driver tmp102_driver = {
.driver.name = DRIVER_NAME, .driver.name = DRIVER_NAME,
.driver.pm = TMP102_DEV_PM_OPS, .driver.pm = TMP102_DEV_PM_OPS,
.probe = tmp102_probe, .probe = tmp102_probe,
.remove = __devexit_p(tmp102_remove), .remove = tmp102_remove,
.id_table = tmp102_id, .id_table = tmp102_id,
}; };
......
...@@ -321,7 +321,7 @@ static struct platform_driver env_driver = { ...@@ -321,7 +321,7 @@ static struct platform_driver env_driver = {
.of_match_table = env_match, .of_match_table = env_match,
}, },
.probe = env_probe, .probe = env_probe,
.remove = __devexit_p(env_remove), .remove = env_remove,
}; };
module_platform_driver(env_driver); module_platform_driver(env_driver);
...@@ -209,7 +209,7 @@ static struct platform_driver via_cputemp_driver = { ...@@ -209,7 +209,7 @@ static struct platform_driver via_cputemp_driver = {
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = via_cputemp_probe, .probe = via_cputemp_probe,
.remove = __devexit_p(via_cputemp_remove), .remove = via_cputemp_remove,
}; };
struct pdev_entry { struct pdev_entry {
......
...@@ -677,7 +677,7 @@ static struct platform_driver via686a_driver = { ...@@ -677,7 +677,7 @@ static struct platform_driver via686a_driver = {
.name = "via686a", .name = "via686a",
}, },
.probe = via686a_probe, .probe = via686a_probe,
.remove = __devexit_p(via686a_remove), .remove = via686a_remove,
}; };
......
...@@ -1233,7 +1233,7 @@ static struct platform_driver vt1211_driver = { ...@@ -1233,7 +1233,7 @@ static struct platform_driver vt1211_driver = {
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = vt1211_probe, .probe = vt1211_probe,
.remove = __devexit_p(vt1211_remove), .remove = vt1211_remove,
}; };
static int __init vt1211_device_add(unsigned short address) static int __init vt1211_device_add(unsigned short address)
......
...@@ -762,7 +762,7 @@ static struct platform_driver vt8231_driver = { ...@@ -762,7 +762,7 @@ static struct platform_driver vt8231_driver = {
.name = "vt8231", .name = "vt8231",
}, },
.probe = vt8231_probe, .probe = vt8231_probe,
.remove = __devexit_p(vt8231_remove), .remove = vt8231_remove,
}; };
static DEFINE_PCI_DEVICE_TABLE(vt8231_pci_ids) = { static DEFINE_PCI_DEVICE_TABLE(vt8231_pci_ids) = {
......
...@@ -2614,7 +2614,7 @@ static struct platform_driver w83627ehf_driver = { ...@@ -2614,7 +2614,7 @@ static struct platform_driver w83627ehf_driver = {
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = w83627ehf_probe, .probe = w83627ehf_probe,
.remove = __devexit_p(w83627ehf_remove), .remove = w83627ehf_remove,
}; };
/* w83627ehf_find() looks for a '627 in the Super-I/O config space */ /* w83627ehf_find() looks for a '627 in the Super-I/O config space */
......
...@@ -407,7 +407,7 @@ static struct platform_driver w83627hf_driver = { ...@@ -407,7 +407,7 @@ static struct platform_driver w83627hf_driver = {
.name = DRVNAME, .name = DRVNAME,
}, },
.probe = w83627hf_probe, .probe = w83627hf_probe,
.remove = __devexit_p(w83627hf_remove), .remove = w83627hf_remove,
}; };
static ssize_t static ssize_t
......
...@@ -1842,7 +1842,7 @@ static struct platform_driver w83781d_isa_driver = { ...@@ -1842,7 +1842,7 @@ static struct platform_driver w83781d_isa_driver = {
.name = "w83781d", .name = "w83781d",
}, },
.probe = w83781d_isa_probe, .probe = w83781d_isa_probe,
.remove = __devexit_p(w83781d_isa_remove), .remove = w83781d_isa_remove,
}; };
/* return 1 if a supported chip is found, 0 otherwise */ /* return 1 if a supported chip is found, 0 otherwise */
......
...@@ -201,7 +201,7 @@ static int __devexit wm831x_hwmon_remove(struct platform_device *pdev) ...@@ -201,7 +201,7 @@ static int __devexit wm831x_hwmon_remove(struct platform_device *pdev)
static struct platform_driver wm831x_hwmon_driver = { static struct platform_driver wm831x_hwmon_driver = {
.probe = wm831x_hwmon_probe, .probe = wm831x_hwmon_probe,
.remove = __devexit_p(wm831x_hwmon_remove), .remove = wm831x_hwmon_remove,
.driver = { .driver = {
.name = "wm831x-hwmon", .name = "wm831x-hwmon",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -126,7 +126,7 @@ static int __devexit wm8350_hwmon_remove(struct platform_device *pdev) ...@@ -126,7 +126,7 @@ static int __devexit wm8350_hwmon_remove(struct platform_device *pdev)
static struct platform_driver wm8350_hwmon_driver = { static struct platform_driver wm8350_hwmon_driver = {
.probe = wm8350_hwmon_probe, .probe = wm8350_hwmon_probe,
.remove = __devexit_p(wm8350_hwmon_remove), .remove = wm8350_hwmon_remove,
.driver = { .driver = {
.name = "wm8350-hwmon", .name = "wm8350-hwmon",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment