]> git.karo-electronics.de Git - linux-beck.git/commitdiff
power: remove use of __devinit
authorBill Pemberton <wfp5p@virginia.edu>
Mon, 19 Nov 2012 18:22:23 +0000 (13:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Nov 2012 19:43:22 +0000 (11:43 -0800)
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Anton Vorontsov <cbou@mail.ru>
Cc: David Woodhouse <dwmw2@infradead.org>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
33 files changed:
drivers/power/88pm860x_battery.c
drivers/power/88pm860x_charger.c
drivers/power/ab8500_btemp.c
drivers/power/ab8500_charger.c
drivers/power/ab8500_fg.c
drivers/power/abx500_chargalg.c
drivers/power/bq27x00_battery.c
drivers/power/collie_battery.c
drivers/power/da9052-battery.c
drivers/power/ds2780_battery.c
drivers/power/ds2781_battery.c
drivers/power/generic-adc-battery.c
drivers/power/gpio-charger.c
drivers/power/intel_mid_battery.c
drivers/power/isp1704_charger.c
drivers/power/jz4740-battery.c
drivers/power/lp8788-charger.c
drivers/power/max17040_battery.c
drivers/power/max17042_battery.c
drivers/power/max8903_charger.c
drivers/power/max8925_power.c
drivers/power/max8997_charger.c
drivers/power/max8998_charger.c
drivers/power/olpc_battery.c
drivers/power/pcf50633-charger.c
drivers/power/s3c_adc_battery.c
drivers/power/sbs-battery.c
drivers/power/tosa_battery.c
drivers/power/wm831x_backup.c
drivers/power/wm831x_power.c
drivers/power/wm8350_power.c
drivers/power/wm97xx_battery.c
drivers/power/z2_battery.c

index ebf7bb5c57edd83760fcd31b29e945b96fa4ce11..0a8e09fc2138129d91615cd3fb7e48e51f00845a 100644 (file)
@@ -901,7 +901,7 @@ static enum power_supply_property pm860x_batt_props[] = {
        POWER_SUPPLY_PROP_TEMP,
 };
 
-static __devinit int pm860x_battery_probe(struct platform_device *pdev)
+static int pm860x_battery_probe(struct platform_device *pdev)
 {
        struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent);
        struct pm860x_battery_info *info;
index fc051732e5dc5f8197b9bb6ee91fd17a50fc5bbe..5f034f2c1964e29c650b918d7493a6d0fb27a8d8 100644 (file)
@@ -645,7 +645,7 @@ static struct pm860x_irq_desc {
        { "vchg", pm860x_vchg_handler },
 };
 
-static __devinit int pm860x_charger_probe(struct platform_device *pdev)
+static int pm860x_charger_probe(struct platform_device *pdev)
 {
        struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent);
        struct pm860x_charger_info *info;
index 61867095d440e5f1be3e6c1ca8d06fc06d458a7a..87a7c972a909204f13a013831664881005173a61 100644 (file)
@@ -960,7 +960,7 @@ static int __devexit ab8500_btemp_remove(struct platform_device *pdev)
        return 0;
 }
 
-static int __devinit ab8500_btemp_probe(struct platform_device *pdev)
+static int ab8500_btemp_probe(struct platform_device *pdev)
 {
        int irq, i, ret = 0;
        u8 val;
index fe36df2680a3645f4a637b4c2984c7a09100f846..b19149b540eeaff1a198b9bf29c52a85de0d8486 100644 (file)
@@ -2531,7 +2531,7 @@ static int __devexit ab8500_charger_remove(struct platform_device *pdev)
        return 0;
 }
 
-static int __devinit ab8500_charger_probe(struct platform_device *pdev)
+static int ab8500_charger_probe(struct platform_device *pdev)
 {
        int irq, i, charger_status, ret = 0;
        struct abx500_bm_plat_data *plat_data = pdev->dev.platform_data;
index ff2f09c0c128c3c70fd41378c04cd3e97262b98f..b3598b86bbe0df302ca2001a0df87d69d29a92a0 100644 (file)
@@ -2442,7 +2442,7 @@ static struct ab8500_fg_interrupts ab8500_fg_irq[] = {
        {"CCEOC", ab8500_fg_cc_data_end_handler},
 };
 
-static int __devinit ab8500_fg_probe(struct platform_device *pdev)
+static int ab8500_fg_probe(struct platform_device *pdev)
 {
        int i, irq;
        int ret = 0;
index 6ed6b88f1fa812486689baa277eb826704a67867..44a5fdac970f44a7370b53d5406d032236051bdf 100644 (file)
@@ -1800,7 +1800,7 @@ static int __devexit abx500_chargalg_remove(struct platform_device *pdev)
        return 0;
 }
 
-static int __devinit abx500_chargalg_probe(struct platform_device *pdev)
+static int abx500_chargalg_probe(struct platform_device *pdev)
 {
        struct abx500_bm_plat_data *plat_data;
        int ret = 0;
index 8faeb40cf78f5ab17a54500e7463ac37949cf8ff..a256a4c05dc641b1e1c26324c953a16f3abc0a70 100644 (file)
@@ -926,7 +926,7 @@ static int bq27000_read_platform(struct bq27x00_device_info *di, u8 reg,
        return pdata->read(dev, reg);
 }
 
-static int __devinit bq27000_battery_probe(struct platform_device *pdev)
+static int bq27000_battery_probe(struct platform_device *pdev)
 {
        struct bq27x00_device_info *di;
        struct bq27000_platform_data *pdata = pdev->dev.platform_data;
index cd9ef5103d073582e81c13d723995e2cf38d4e79..d3d80bb84c8f1c24ac64bd50681d509a9712c17a 100644 (file)
@@ -305,7 +305,7 @@ static int collie_bat_resume(struct ucb1x00_dev *dev)
 #define collie_bat_resume NULL
 #endif
 
-static int __devinit collie_bat_probe(struct ucb1x00_dev *dev)
+static int collie_bat_probe(struct ucb1x00_dev *dev)
 {
        int ret;
 
index 753d4ba483f78d0aa111ebd571de8ea7a480e746..133829065afb7b39f2f309fb9ff7732eea051460 100644 (file)
@@ -576,7 +576,7 @@ static const char *const da9052_bat_irqs[] = {
        "CHG END",
 };
 
-static s32 __devinit da9052_bat_probe(struct platform_device *pdev)
+static s32 da9052_bat_probe(struct platform_device *pdev)
 {
        struct da9052_pdata *pdata;
        struct da9052_battery *bat;
index 2154822e9c86870fb8fdf5bd00b441b7ef774478..42024f8542139db6ee5e28346f2dd7e006ec90af 100644 (file)
@@ -755,7 +755,7 @@ static const struct attribute_group ds2780_attr_group = {
        .attrs = ds2780_attributes,
 };
 
-static int __devinit ds2780_battery_probe(struct platform_device *pdev)
+static int ds2780_battery_probe(struct platform_device *pdev)
 {
        int ret = 0;
        struct ds2780_device_info *dev_info;
index ce1200914b89cd38df541aac9b5321417a3187d9..46821aafe6beb583ae67790db18b1587a1cd6923 100644 (file)
@@ -750,7 +750,7 @@ static const struct attribute_group ds2781_attr_group = {
        .attrs = ds2781_attributes,
 };
 
-static int __devinit ds2781_battery_probe(struct platform_device *pdev)
+static int ds2781_battery_probe(struct platform_device *pdev)
 {
        int ret = 0;
        struct ds2781_device_info *dev_info;
index 60a0f29a9ac9f7ad250805ea76206bf9a349b44f..055dea7a1756adc32abb440298dd7acf884f5b43 100644 (file)
@@ -236,7 +236,7 @@ static irqreturn_t gab_charged(int irq, void *dev_id)
        return IRQ_HANDLED;
 }
 
-static int __devinit gab_probe(struct platform_device *pdev)
+static int gab_probe(struct platform_device *pdev)
 {
        struct gab *adc_bat;
        struct power_supply *psy;
index e74fb2fbdb2c80ece60a874b06e97425225c45d2..cea6e6ae0e84aa1d619a4e46be4582b3abea655a 100644 (file)
@@ -68,7 +68,7 @@ static enum power_supply_property gpio_charger_properties[] = {
        POWER_SUPPLY_PROP_ONLINE,
 };
 
-static int __devinit gpio_charger_probe(struct platform_device *pdev)
+static int gpio_charger_probe(struct platform_device *pdev)
 {
        const struct gpio_charger_platform_data *pdata = pdev->dev.platform_data;
        struct gpio_charger *gpio_charger;
index 8ba1c67af60e6dfe60b04dbaf10b2769b8faeb7b..0eb50b0daf742ff21ad4d20ce5c66b799109c1d7 100644 (file)
@@ -649,7 +649,7 @@ static void pmic_battery_handle_intrpt(struct work_struct *work)
  * PMIC battery initializes its internal data structue and other
  * infrastructure components for it to work as expected.
  */
-static __devinit int probe(int irq, struct device *dev)
+static int probe(int irq, struct device *dev)
 {
        int retval = 0;
        struct pmic_power_module_info *pbi;
@@ -739,7 +739,7 @@ wqueue_failed:
        return retval;
 }
 
-static int __devinit platform_pmic_battery_probe(struct platform_device *pdev)
+static int platform_pmic_battery_probe(struct platform_device *pdev)
 {
        return probe(pdev->id, &pdev->dev);
 }
index 1f0c5857130bb037198787365b4c84b93dc9c7c6..3a1b9598d168395e2e80ec0ea5da33d8bcf6a67c 100644 (file)
@@ -406,7 +406,7 @@ static inline int isp1704_test_ulpi(struct isp1704_charger *isp)
        return -ENODEV;
 }
 
-static int __devinit isp1704_charger_probe(struct platform_device *pdev)
+static int isp1704_charger_probe(struct platform_device *pdev)
 {
        struct isp1704_charger  *isp;
        int                     ret = -ENODEV;
index c9abfef66aa195f9a72aa9e553783ba2fb73c31c..1f7d2ca0dbd2b55a79aa9b4925a856e1f35ed37e 100644 (file)
@@ -238,7 +238,7 @@ static void jz_battery_work(struct work_struct *work)
        schedule_delayed_work(&jz_battery->work, interval);
 }
 
-static int __devinit jz_battery_probe(struct platform_device *pdev)
+static int jz_battery_probe(struct platform_device *pdev)
 {
        int ret = 0;
        struct jz_battery_platform_data *pdata = pdev->dev.parent->platform_data;
index 5d743b75f5cf70ec5da3702aae4c7d34764bb2b6..3bdb4be8db2b2417d5e57176f339c5ab90e554b5 100644 (file)
@@ -729,7 +729,7 @@ static const struct attribute_group lp8788_attr_group = {
        .attrs = lp8788_charger_attr,
 };
 
-static __devinit int lp8788_charger_probe(struct platform_device *pdev)
+static int lp8788_charger_probe(struct platform_device *pdev)
 {
        struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent);
        struct lp8788_charger *pchg;
index fcc712e8aaebbed1dfe330e3bd1144ba5de54dac..ae10a21ed70c2cd3f3ee940dfb54df513f903534 100644 (file)
@@ -197,7 +197,7 @@ static enum power_supply_property max17040_battery_props[] = {
        POWER_SUPPLY_PROP_CAPACITY,
 };
 
-static int __devinit max17040_probe(struct i2c_client *client,
+static int max17040_probe(struct i2c_client *client,
                        const struct i2c_device_id *id)
 {
        struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
index 0896fec2eeccc0bb49a620242d96e74e722e9563..8752bc01a9ea04e393add8807401d7f5f398330d 100644 (file)
@@ -681,7 +681,7 @@ max17042_get_pdata(struct device *dev)
 }
 #endif
 
-static int __devinit max17042_probe(struct i2c_client *client,
+static int max17042_probe(struct i2c_client *client,
                        const struct i2c_device_id *id)
 {
        struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
index 53ab51e8c89218942ee9721ebbf75f6c08e4c017..83272c51f6a53ea351db0b76897a7153aadffd63 100644 (file)
@@ -179,7 +179,7 @@ static irqreturn_t max8903_fault(int irq, void *_data)
        return IRQ_HANDLED;
 }
 
-static __devinit int max8903_probe(struct platform_device *pdev)
+static int max8903_probe(struct platform_device *pdev)
 {
        struct max8903_data *data;
        struct device *dev = &pdev->dev;
index 872806018d588e86bed91ce5d826b55dfc92ccdd..7b8191b08a46797221763bdf2f8ad9a3a10a6259 100644 (file)
@@ -356,7 +356,7 @@ do {                                                                        \
                        _irq, ret);                                     \
 } while (0)
 
-static __devinit int max8925_init_charger(struct max8925_chip *chip,
+static int max8925_init_charger(struct max8925_chip *chip,
                                          struct max8925_power_info *info)
 {
        int ret;
@@ -426,7 +426,7 @@ static __devexit int max8925_deinit_charger(struct max8925_power_info *info)
        return 0;
 }
 
-static __devinit int max8925_power_probe(struct platform_device *pdev)
+static int max8925_power_probe(struct platform_device *pdev)
 {
        struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent);
        struct max8925_power_pdata *pdata = NULL;
index 19cfd2d12901b759bb781439ac1e4f57a5361e53..c6767dfd4c41c12d6b0bab72594e4c48e0f733a8 100644 (file)
@@ -86,7 +86,7 @@ static int max8997_battery_get_property(struct power_supply *psy,
        return 0;
 }
 
-static __devinit int max8997_battery_probe(struct platform_device *pdev)
+static int max8997_battery_probe(struct platform_device *pdev)
 {
        int ret = 0;
        struct charger_data *charger;
index 1db13638ef7fba9616a50d9028ee9548011a63ee..9f34c80f358cf3937203e09002355bf5a57844ec 100644 (file)
@@ -75,7 +75,7 @@ static int max8998_battery_get_property(struct power_supply *psy,
        return 0;
 }
 
-static __devinit int max8998_battery_probe(struct platform_device *pdev)
+static int max8998_battery_probe(struct platform_device *pdev)
 {
        struct max8998_dev *iodev = dev_get_drvdata(pdev->dev.parent);
        struct max8998_platform_data *pdata = dev_get_platdata(iodev->dev);
index 31479115db73b8002abf9d475c5e4420f8e505f5..60d5449a9960ac9afd9e24d5e442f3f4eeef7269 100644 (file)
@@ -598,7 +598,7 @@ static int olpc_battery_suspend(struct platform_device *pdev,
        return 0;
 }
 
-static int __devinit olpc_battery_probe(struct platform_device *pdev)
+static int olpc_battery_probe(struct platform_device *pdev)
 {
        int ret;
        uint8_t status;
index 81bada0a3692dfe11fceafcbf6b940bc73ff54b0..c0ba4ecb1943114f33bdcc58be363a2a1a5cb681 100644 (file)
@@ -366,7 +366,7 @@ static const u8 mbc_irq_handlers[] = {
        PCF50633_IRQ_LOWBAT,
 };
 
-static int __devinit pcf50633_mbc_probe(struct platform_device *pdev)
+static int pcf50633_mbc_probe(struct platform_device *pdev)
 {
        struct pcf50633_mbc *mbc;
        int ret;
index 8b804a566756a11c06ce08a8cdadc10828e6bcc0..d2ca989dcbdce0be3b98a7513c4517b802f1650d 100644 (file)
@@ -286,7 +286,7 @@ static irqreturn_t s3c_adc_bat_charged(int irq, void *dev_id)
        return IRQ_HANDLED;
 }
 
-static int __devinit s3c_adc_bat_probe(struct platform_device *pdev)
+static int s3c_adc_bat_probe(struct platform_device *pdev)
 {
        struct s3c_adc_client   *client;
        struct s3c_adc_bat_pdata *pdata = pdev->dev.platform_data;
index de57fdd75a8c1b1879ada14d2803b5dfe676ae39..30280c5b1fb75f0b60936a03bb79340860086e70 100644 (file)
@@ -675,7 +675,7 @@ static struct sbs_platform_data *sbs_of_populate_pdata(
 }
 #endif
 
-static int __devinit sbs_probe(struct i2c_client *client,
+static int sbs_probe(struct i2c_client *client,
        const struct i2c_device_id *id)
 {
        struct sbs_info *chip;
index 9625a765d5666bb26bf4c2dd7e5d34e6dacf1eb4..d958c9f6d52482885f72f776268729a7c3d4cf73 100644 (file)
@@ -342,7 +342,7 @@ static int tosa_bat_resume(struct platform_device *dev)
 #define tosa_bat_resume NULL
 #endif
 
-static int __devinit tosa_bat_probe(struct platform_device *dev)
+static int tosa_bat_probe(struct platform_device *dev)
 {
        int ret;
 
index 6ea6fbd32c202e6c4d94028734a4a458fbaed7c0..ef3b81788752f164e49254b71f2902adfcb53111 100644 (file)
@@ -161,7 +161,7 @@ static enum power_supply_property wm831x_backup_props[] = {
  *             Initialisation
  *********************************************************************/
 
-static __devinit int wm831x_backup_probe(struct platform_device *pdev)
+static int wm831x_backup_probe(struct platform_device *pdev)
 {
        struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent);
        struct wm831x_pdata *wm831x_pdata = wm831x->dev->platform_data;
index 6b6a678c7c811c42274387288565823cdf7434bc..d21af8a01af3070474ab517026f8618fb92e7b7d 100644 (file)
@@ -489,7 +489,7 @@ static irqreturn_t wm831x_pwr_src_irq(int irq, void *data)
        return IRQ_HANDLED;
 }
 
-static __devinit int wm831x_power_probe(struct platform_device *pdev)
+static int wm831x_power_probe(struct platform_device *pdev)
 {
        struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent);
        struct wm831x_pdata *wm831x_pdata = wm831x->dev->platform_data;
index 50d5605f4fd20f0ed1315a3c92d86ea7ec65134a..6acb63a41a2d7e6b1492f61071a5312077ff9358 100644 (file)
@@ -442,7 +442,7 @@ static void free_charger_irq(struct wm8350 *wm8350)
        wm8350_free_irq(wm8350, WM8350_IRQ_EXT_BAT_FB, wm8350);
 }
 
-static __devinit int wm8350_power_probe(struct platform_device *pdev)
+static int wm8350_power_probe(struct platform_device *pdev)
 {
        struct wm8350 *wm8350 = platform_get_drvdata(pdev);
        struct wm8350_power *power = &wm8350->power;
index 786d1cd685c389edd58d0abc7889a99f2b1c4db4..4b3f7634fd30fc22933514fd3f6f6762a6813662 100644 (file)
@@ -162,7 +162,7 @@ static const struct dev_pm_ops wm97xx_bat_pm_ops = {
 };
 #endif
 
-static int __devinit wm97xx_bat_probe(struct platform_device *dev)
+static int wm97xx_bat_probe(struct platform_device *dev)
 {
        int ret = 0;
        int props = 1;  /* POWER_SUPPLY_PROP_PRESENT */
index 406dbd3d6bff8e6316592316854fdfc52ba7440e..ebf16296aca3a2fef3a3248c546d47db32f78086 100644 (file)
@@ -180,7 +180,7 @@ static int z2_batt_ps_init(struct z2_charger *charger, int props)
        return 0;
 }
 
-static int __devinit z2_batt_probe(struct i2c_client *client,
+static int z2_batt_probe(struct i2c_client *client,
                                const struct i2c_device_id *id)
 {
        int ret = 0;