Commit 28ea73f4 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

power: 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: Anton Vorontsov <cbou@mail.ru>
Cc: David Woodhouse <dwmw2@infradead.org>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e533a349
...@@ -1033,7 +1033,7 @@ static struct platform_driver pm860x_battery_driver = { ...@@ -1033,7 +1033,7 @@ static struct platform_driver pm860x_battery_driver = {
.pm = &pm860x_battery_pm_ops, .pm = &pm860x_battery_pm_ops,
}, },
.probe = pm860x_battery_probe, .probe = pm860x_battery_probe,
.remove = __devexit_p(pm860x_battery_remove), .remove = pm860x_battery_remove,
}; };
module_platform_driver(pm860x_battery_driver); module_platform_driver(pm860x_battery_driver);
......
...@@ -738,7 +738,7 @@ static struct platform_driver pm860x_charger_driver = { ...@@ -738,7 +738,7 @@ static struct platform_driver pm860x_charger_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = pm860x_charger_probe, .probe = pm860x_charger_probe,
.remove = __devexit_p(pm860x_charger_remove), .remove = pm860x_charger_remove,
}; };
module_platform_driver(pm860x_charger_driver); module_platform_driver(pm860x_charger_driver);
......
...@@ -1101,7 +1101,7 @@ static int __devinit ab8500_btemp_probe(struct platform_device *pdev) ...@@ -1101,7 +1101,7 @@ static int __devinit ab8500_btemp_probe(struct platform_device *pdev)
static struct platform_driver ab8500_btemp_driver = { static struct platform_driver ab8500_btemp_driver = {
.probe = ab8500_btemp_probe, .probe = ab8500_btemp_probe,
.remove = __devexit_p(ab8500_btemp_remove), .remove = ab8500_btemp_remove,
.suspend = ab8500_btemp_suspend, .suspend = ab8500_btemp_suspend,
.resume = ab8500_btemp_resume, .resume = ab8500_btemp_resume,
.driver = { .driver = {
......
...@@ -2765,7 +2765,7 @@ static int __devinit ab8500_charger_probe(struct platform_device *pdev) ...@@ -2765,7 +2765,7 @@ static int __devinit ab8500_charger_probe(struct platform_device *pdev)
static struct platform_driver ab8500_charger_driver = { static struct platform_driver ab8500_charger_driver = {
.probe = ab8500_charger_probe, .probe = ab8500_charger_probe,
.remove = __devexit_p(ab8500_charger_remove), .remove = ab8500_charger_remove,
.suspend = ab8500_charger_suspend, .suspend = ab8500_charger_suspend,
.resume = ab8500_charger_resume, .resume = ab8500_charger_resume,
.driver = { .driver = {
......
...@@ -2614,7 +2614,7 @@ static int __devinit ab8500_fg_probe(struct platform_device *pdev) ...@@ -2614,7 +2614,7 @@ static int __devinit ab8500_fg_probe(struct platform_device *pdev)
static struct platform_driver ab8500_fg_driver = { static struct platform_driver ab8500_fg_driver = {
.probe = ab8500_fg_probe, .probe = ab8500_fg_probe,
.remove = __devexit_p(ab8500_fg_remove), .remove = ab8500_fg_remove,
.suspend = ab8500_fg_suspend, .suspend = ab8500_fg_suspend,
.resume = ab8500_fg_resume, .resume = ab8500_fg_resume,
.driver = { .driver = {
......
...@@ -1893,7 +1893,7 @@ static int __devinit abx500_chargalg_probe(struct platform_device *pdev) ...@@ -1893,7 +1893,7 @@ static int __devinit abx500_chargalg_probe(struct platform_device *pdev)
static struct platform_driver abx500_chargalg_driver = { static struct platform_driver abx500_chargalg_driver = {
.probe = abx500_chargalg_probe, .probe = abx500_chargalg_probe,
.remove = __devexit_p(abx500_chargalg_remove), .remove = abx500_chargalg_remove,
.suspend = abx500_chargalg_suspend, .suspend = abx500_chargalg_suspend,
.resume = abx500_chargalg_resume, .resume = abx500_chargalg_resume,
.driver = { .driver = {
......
...@@ -1083,8 +1083,8 @@ static void __devexit omap_sr_shutdown(struct platform_device *pdev) ...@@ -1083,8 +1083,8 @@ static void __devexit omap_sr_shutdown(struct platform_device *pdev)
} }
static struct platform_driver smartreflex_driver = { static struct platform_driver smartreflex_driver = {
.remove = __devexit_p(omap_sr_remove), .remove = omap_sr_remove,
.shutdown = __devexit_p(omap_sr_shutdown), .shutdown = omap_sr_shutdown,
.driver = { .driver = {
.name = "smartreflex", .name = "smartreflex",
}, },
......
...@@ -983,7 +983,7 @@ static int __devexit bq27000_battery_remove(struct platform_device *pdev) ...@@ -983,7 +983,7 @@ static int __devexit bq27000_battery_remove(struct platform_device *pdev)
static struct platform_driver bq27000_battery_driver = { static struct platform_driver bq27000_battery_driver = {
.probe = bq27000_battery_probe, .probe = bq27000_battery_probe,
.remove = __devexit_p(bq27000_battery_remove), .remove = bq27000_battery_remove,
.driver = { .driver = {
.name = "bq27000-battery", .name = "bq27000-battery",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -1812,7 +1812,7 @@ static struct platform_driver charger_manager_driver = { ...@@ -1812,7 +1812,7 @@ static struct platform_driver charger_manager_driver = {
.pm = &charger_manager_pm, .pm = &charger_manager_pm,
}, },
.probe = charger_manager_probe, .probe = charger_manager_probe,
.remove = __devexit_p(charger_manager_remove), .remove = charger_manager_remove,
.id_table = charger_manager_id, .id_table = charger_manager_id,
}; };
......
...@@ -367,7 +367,7 @@ static void __devexit collie_bat_remove(struct ucb1x00_dev *dev) ...@@ -367,7 +367,7 @@ static void __devexit collie_bat_remove(struct ucb1x00_dev *dev)
static struct ucb1x00_driver collie_bat_driver = { static struct ucb1x00_driver collie_bat_driver = {
.add = collie_bat_probe, .add = collie_bat_probe,
.remove = __devexit_p(collie_bat_remove), .remove = collie_bat_remove,
.suspend = collie_bat_suspend, .suspend = collie_bat_suspend,
.resume = collie_bat_resume, .resume = collie_bat_resume,
}; };
......
...@@ -648,7 +648,7 @@ static int __devexit da9052_bat_remove(struct platform_device *pdev) ...@@ -648,7 +648,7 @@ static int __devexit da9052_bat_remove(struct platform_device *pdev)
static struct platform_driver da9052_bat_driver = { static struct platform_driver da9052_bat_driver = {
.probe = da9052_bat_probe, .probe = da9052_bat_probe,
.remove = __devexit_p(da9052_bat_remove), .remove = da9052_bat_remove,
.driver = { .driver = {
.name = "da9052-bat", .name = "da9052-bat",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -837,7 +837,7 @@ static struct platform_driver ds2780_battery_driver = { ...@@ -837,7 +837,7 @@ static struct platform_driver ds2780_battery_driver = {
.name = "ds2780-battery", .name = "ds2780-battery",
}, },
.probe = ds2780_battery_probe, .probe = ds2780_battery_probe,
.remove = __devexit_p(ds2780_battery_remove), .remove = ds2780_battery_remove,
}; };
module_platform_driver(ds2780_battery_driver); module_platform_driver(ds2780_battery_driver);
......
...@@ -827,7 +827,7 @@ static struct platform_driver ds2781_battery_driver = { ...@@ -827,7 +827,7 @@ static struct platform_driver ds2781_battery_driver = {
.name = "ds2781-battery", .name = "ds2781-battery",
}, },
.probe = ds2781_battery_probe, .probe = ds2781_battery_probe,
.remove = __devexit_p(ds2781_battery_remove), .remove = ds2781_battery_remove,
}; };
module_platform_driver(ds2781_battery_driver); module_platform_driver(ds2781_battery_driver);
......
...@@ -413,7 +413,7 @@ static struct platform_driver gab_driver = { ...@@ -413,7 +413,7 @@ static struct platform_driver gab_driver = {
.pm = GAB_PM_OPS .pm = GAB_PM_OPS
}, },
.probe = gab_probe, .probe = gab_probe,
.remove = __devexit_p(gab_remove), .remove = gab_remove,
}; };
module_platform_driver(gab_driver); module_platform_driver(gab_driver);
......
...@@ -177,7 +177,7 @@ static SIMPLE_DEV_PM_OPS(gpio_charger_pm_ops, NULL, gpio_charger_resume); ...@@ -177,7 +177,7 @@ static SIMPLE_DEV_PM_OPS(gpio_charger_pm_ops, NULL, gpio_charger_resume);
static struct platform_driver gpio_charger_driver = { static struct platform_driver gpio_charger_driver = {
.probe = gpio_charger_probe, .probe = gpio_charger_probe,
.remove = __devexit_p(gpio_charger_remove), .remove = gpio_charger_remove,
.driver = { .driver = {
.name = "gpio-charger", .name = "gpio-charger",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -776,7 +776,7 @@ static struct platform_driver platform_pmic_battery_driver = { ...@@ -776,7 +776,7 @@ static struct platform_driver platform_pmic_battery_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = platform_pmic_battery_probe, .probe = platform_pmic_battery_probe,
.remove = __devexit_p(platform_pmic_battery_remove), .remove = platform_pmic_battery_remove,
}; };
module_platform_driver(platform_pmic_battery_driver); module_platform_driver(platform_pmic_battery_driver);
......
...@@ -502,7 +502,7 @@ static struct platform_driver isp1704_charger_driver = { ...@@ -502,7 +502,7 @@ static struct platform_driver isp1704_charger_driver = {
.name = "isp1704_charger", .name = "isp1704_charger",
}, },
.probe = isp1704_charger_probe, .probe = isp1704_charger_probe,
.remove = __devexit_p(isp1704_charger_remove), .remove = isp1704_charger_remove,
}; };
module_platform_driver(isp1704_charger_driver); module_platform_driver(isp1704_charger_driver);
......
...@@ -431,7 +431,7 @@ static const struct dev_pm_ops jz_battery_pm_ops = { ...@@ -431,7 +431,7 @@ static const struct dev_pm_ops jz_battery_pm_ops = {
static struct platform_driver jz_battery_driver = { static struct platform_driver jz_battery_driver = {
.probe = jz_battery_probe, .probe = jz_battery_probe,
.remove = __devexit_p(jz_battery_remove), .remove = jz_battery_remove,
.driver = { .driver = {
.name = "jz4740-battery", .name = "jz4740-battery",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -542,7 +542,7 @@ static struct i2c_driver lp8727_driver = { ...@@ -542,7 +542,7 @@ static struct i2c_driver lp8727_driver = {
.name = "lp8727", .name = "lp8727",
}, },
.probe = lp8727_probe, .probe = lp8727_probe,
.remove = __devexit_p(lp8727_remove), .remove = lp8727_remove,
.id_table = lp8727_ids, .id_table = lp8727_ids,
}; };
module_i2c_driver(lp8727_driver); module_i2c_driver(lp8727_driver);
......
...@@ -781,7 +781,7 @@ static int __devexit lp8788_charger_remove(struct platform_device *pdev) ...@@ -781,7 +781,7 @@ static int __devexit lp8788_charger_remove(struct platform_device *pdev)
static struct platform_driver lp8788_charger_driver = { static struct platform_driver lp8788_charger_driver = {
.probe = lp8788_charger_probe, .probe = lp8788_charger_probe,
.remove = __devexit_p(lp8788_charger_remove), .remove = lp8788_charger_remove,
.driver = { .driver = {
.name = LP8788_DEV_CHARGER, .name = LP8788_DEV_CHARGER,
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -285,7 +285,7 @@ static struct i2c_driver max17040_i2c_driver = { ...@@ -285,7 +285,7 @@ static struct i2c_driver max17040_i2c_driver = {
.name = "max17040", .name = "max17040",
}, },
.probe = max17040_probe, .probe = max17040_probe,
.remove = __devexit_p(max17040_remove), .remove = max17040_remove,
.suspend = max17040_suspend, .suspend = max17040_suspend,
.resume = max17040_resume, .resume = max17040_resume,
.id_table = max17040_id, .id_table = max17040_id,
......
...@@ -851,7 +851,7 @@ static struct i2c_driver max17042_i2c_driver = { ...@@ -851,7 +851,7 @@ static struct i2c_driver max17042_i2c_driver = {
.pm = MAX17042_PM_OPS, .pm = MAX17042_PM_OPS,
}, },
.probe = max17042_probe, .probe = max17042_probe,
.remove = __devexit_p(max17042_remove), .remove = max17042_remove,
.id_table = max17042_id, .id_table = max17042_id,
}; };
module_i2c_driver(max17042_i2c_driver); module_i2c_driver(max17042_i2c_driver);
......
...@@ -367,7 +367,7 @@ static __devexit int max8903_remove(struct platform_device *pdev) ...@@ -367,7 +367,7 @@ static __devexit int max8903_remove(struct platform_device *pdev)
static struct platform_driver max8903_driver = { static struct platform_driver max8903_driver = {
.probe = max8903_probe, .probe = max8903_probe,
.remove = __devexit_p(max8903_remove), .remove = max8903_remove,
.driver = { .driver = {
.name = "max8903-charger", .name = "max8903-charger",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -517,7 +517,7 @@ static __devexit int max8925_power_remove(struct platform_device *pdev) ...@@ -517,7 +517,7 @@ static __devexit int max8925_power_remove(struct platform_device *pdev)
static struct platform_driver max8925_power_driver = { static struct platform_driver max8925_power_driver = {
.probe = max8925_power_probe, .probe = max8925_power_probe,
.remove = __devexit_p(max8925_power_remove), .remove = max8925_power_remove,
.driver = { .driver = {
.name = "max8925-power", .name = "max8925-power",
}, },
......
...@@ -187,7 +187,7 @@ static struct platform_driver max8997_battery_driver = { ...@@ -187,7 +187,7 @@ static struct platform_driver max8997_battery_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = max8997_battery_probe, .probe = max8997_battery_probe,
.remove = __devexit_p(max8997_battery_remove), .remove = max8997_battery_remove,
.id_table = max8997_battery_id, .id_table = max8997_battery_id,
}; };
......
...@@ -199,7 +199,7 @@ static struct platform_driver max8998_battery_driver = { ...@@ -199,7 +199,7 @@ static struct platform_driver max8998_battery_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = max8998_battery_probe, .probe = max8998_battery_probe,
.remove = __devexit_p(max8998_battery_remove), .remove = max8998_battery_remove,
.id_table = max8998_battery_id, .id_table = max8998_battery_id,
}; };
......
...@@ -681,7 +681,7 @@ static struct platform_driver olpc_battery_driver = { ...@@ -681,7 +681,7 @@ static struct platform_driver olpc_battery_driver = {
.of_match_table = olpc_battery_ids, .of_match_table = olpc_battery_ids,
}, },
.probe = olpc_battery_probe, .probe = olpc_battery_probe,
.remove = __devexit_p(olpc_battery_remove), .remove = olpc_battery_remove,
.suspend = olpc_battery_suspend, .suspend = olpc_battery_suspend,
}; };
......
...@@ -471,7 +471,7 @@ static struct platform_driver pcf50633_mbc_driver = { ...@@ -471,7 +471,7 @@ static struct platform_driver pcf50633_mbc_driver = {
.name = "pcf50633-mbc", .name = "pcf50633-mbc",
}, },
.probe = pcf50633_mbc_probe, .probe = pcf50633_mbc_probe,
.remove = __devexit_p(pcf50633_mbc_remove), .remove = pcf50633_mbc_remove,
}; };
module_platform_driver(pcf50633_mbc_driver); module_platform_driver(pcf50633_mbc_driver);
......
...@@ -853,7 +853,7 @@ MODULE_DEVICE_TABLE(i2c, sbs_id); ...@@ -853,7 +853,7 @@ MODULE_DEVICE_TABLE(i2c, sbs_id);
static struct i2c_driver sbs_battery_driver = { static struct i2c_driver sbs_battery_driver = {
.probe = sbs_probe, .probe = sbs_probe,
.remove = __devexit_p(sbs_remove), .remove = sbs_remove,
.suspend = sbs_suspend, .suspend = sbs_suspend,
.resume = sbs_resume, .resume = sbs_resume,
.id_table = sbs_id, .id_table = sbs_id,
......
...@@ -1313,7 +1313,7 @@ static struct i2c_driver smb347_driver = { ...@@ -1313,7 +1313,7 @@ static struct i2c_driver smb347_driver = {
.name = "smb347", .name = "smb347",
}, },
.probe = smb347_probe, .probe = smb347_probe,
.remove = __devexit_p(smb347_remove), .remove = smb347_remove,
.id_table = smb347_id, .id_table = smb347_id,
}; };
......
...@@ -433,7 +433,7 @@ static struct platform_driver tosa_bat_driver = { ...@@ -433,7 +433,7 @@ static struct platform_driver tosa_bat_driver = {
.driver.name = "wm97xx-battery", .driver.name = "wm97xx-battery",
.driver.owner = THIS_MODULE, .driver.owner = THIS_MODULE,
.probe = tosa_bat_probe, .probe = tosa_bat_probe,
.remove = __devexit_p(tosa_bat_remove), .remove = tosa_bat_remove,
.suspend = tosa_bat_suspend, .suspend = tosa_bat_suspend,
.resume = tosa_bat_resume, .resume = tosa_bat_resume,
}; };
......
...@@ -220,7 +220,7 @@ static __devexit int wm831x_backup_remove(struct platform_device *pdev) ...@@ -220,7 +220,7 @@ static __devexit int wm831x_backup_remove(struct platform_device *pdev)
static struct platform_driver wm831x_backup_driver = { static struct platform_driver wm831x_backup_driver = {
.probe = wm831x_backup_probe, .probe = wm831x_backup_probe,
.remove = __devexit_p(wm831x_backup_remove), .remove = wm831x_backup_remove,
.driver = { .driver = {
.name = "wm831x-backup", .name = "wm831x-backup",
}, },
......
...@@ -654,7 +654,7 @@ static __devexit int wm831x_power_remove(struct platform_device *pdev) ...@@ -654,7 +654,7 @@ static __devexit int wm831x_power_remove(struct platform_device *pdev)
static struct platform_driver wm831x_power_driver = { static struct platform_driver wm831x_power_driver = {
.probe = wm831x_power_probe, .probe = wm831x_power_probe,
.remove = __devexit_p(wm831x_power_remove), .remove = wm831x_power_remove,
.driver = { .driver = {
.name = "wm831x-power", .name = "wm831x-power",
}, },
......
...@@ -516,7 +516,7 @@ static __devexit int wm8350_power_remove(struct platform_device *pdev) ...@@ -516,7 +516,7 @@ static __devexit int wm8350_power_remove(struct platform_device *pdev)
static struct platform_driver wm8350_power_driver = { static struct platform_driver wm8350_power_driver = {
.probe = wm8350_power_probe, .probe = wm8350_power_probe,
.remove = __devexit_p(wm8350_power_remove), .remove = wm8350_power_remove,
.driver = { .driver = {
.name = "wm8350-power", .name = "wm8350-power",
}, },
......
...@@ -287,7 +287,7 @@ static struct platform_driver wm97xx_bat_driver = { ...@@ -287,7 +287,7 @@ static struct platform_driver wm97xx_bat_driver = {
#endif #endif
}, },
.probe = wm97xx_bat_probe, .probe = wm97xx_bat_probe,
.remove = __devexit_p(wm97xx_bat_remove), .remove = wm97xx_bat_remove,
}; };
module_platform_driver(wm97xx_bat_driver); module_platform_driver(wm97xx_bat_driver);
......
...@@ -313,7 +313,7 @@ static struct i2c_driver z2_batt_driver = { ...@@ -313,7 +313,7 @@ static struct i2c_driver z2_batt_driver = {
.pm = Z2_BATTERY_PM_OPS .pm = Z2_BATTERY_PM_OPS
}, },
.probe = z2_batt_probe, .probe = z2_batt_probe,
.remove = __devexit_p(z2_batt_remove), .remove = z2_batt_remove,
.id_table = z2_batt_id, .id_table = z2_batt_id,
}; };
module_i2c_driver(z2_batt_driver); module_i2c_driver(z2_batt_driver);
......
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