diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-11-19 13:22:22 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-19 20:31:26 -0500 |
commit | a5023574d120ca3b9337cedd4e27de90cae9aff7 (patch) | |
tree | 071ee48554ff7e3f2a7208aac03c892c210dbffc /drivers/regulator | |
parent | 5eb9f2b96381ac3fa4a5910c37213c1cb62e9c65 (diff) |
regulator: remove use of __devinit
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
57 files changed, 78 insertions, 78 deletions
diff --git a/drivers/regulator/88pm8607.c b/drivers/regulator/88pm8607.c index 2d798ca53809..c09b5d97f4e7 100644 --- a/drivers/regulator/88pm8607.c +++ b/drivers/regulator/88pm8607.c | |||
@@ -394,7 +394,7 @@ static int pm8607_regulator_dt_init(struct platform_device *pdev, | |||
394 | #define pm8607_regulator_dt_init(x, y, z) (-1) | 394 | #define pm8607_regulator_dt_init(x, y, z) (-1) |
395 | #endif | 395 | #endif |
396 | 396 | ||
397 | static int __devinit pm8607_regulator_probe(struct platform_device *pdev) | 397 | static int pm8607_regulator_probe(struct platform_device *pdev) |
398 | { | 398 | { |
399 | struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); | 399 | struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); |
400 | struct pm8607_regulator_info *info = NULL; | 400 | struct pm8607_regulator_info *info = NULL; |
diff --git a/drivers/regulator/ab3100.c b/drivers/regulator/ab3100.c index 9fae59d41c0a..7a04d5fe4e93 100644 --- a/drivers/regulator/ab3100.c +++ b/drivers/regulator/ab3100.c | |||
@@ -494,7 +494,7 @@ ab3100_regulator_desc[AB3100_NUM_REGULATORS] = { | |||
494 | * for all the different regulators. | 494 | * for all the different regulators. |
495 | */ | 495 | */ |
496 | 496 | ||
497 | static int __devinit ab3100_regulators_probe(struct platform_device *pdev) | 497 | static int ab3100_regulators_probe(struct platform_device *pdev) |
498 | { | 498 | { |
499 | struct ab3100_platform_data *plfdata = pdev->dev.platform_data; | 499 | struct ab3100_platform_data *plfdata = pdev->dev.platform_data; |
500 | struct regulator_config config = { }; | 500 | struct regulator_config config = { }; |
diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index 987b047fc40a..af81325b8e2f 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c | |||
@@ -641,7 +641,7 @@ static struct ab8500_reg_init ab8500_reg_init[] = { | |||
641 | REG_INIT(AB8500_REGUCTRLDISCH2, 0x04, 0x44, 0x16), | 641 | REG_INIT(AB8500_REGUCTRLDISCH2, 0x04, 0x44, 0x16), |
642 | }; | 642 | }; |
643 | 643 | ||
644 | static __devinit int | 644 | static int |
645 | ab8500_regulator_init_registers(struct platform_device *pdev, int id, int value) | 645 | ab8500_regulator_init_registers(struct platform_device *pdev, int id, int value) |
646 | { | 646 | { |
647 | int err; | 647 | int err; |
@@ -676,7 +676,7 @@ ab8500_regulator_init_registers(struct platform_device *pdev, int id, int value) | |||
676 | return 0; | 676 | return 0; |
677 | } | 677 | } |
678 | 678 | ||
679 | static __devinit int ab8500_regulator_register(struct platform_device *pdev, | 679 | static int ab8500_regulator_register(struct platform_device *pdev, |
680 | struct regulator_init_data *init_data, | 680 | struct regulator_init_data *init_data, |
681 | int id, | 681 | int id, |
682 | struct device_node *np) | 682 | struct device_node *np) |
@@ -735,7 +735,7 @@ static struct of_regulator_match ab8500_regulator_matches[] = { | |||
735 | { .name = "ab8500_ldo_ana", .driver_data = (void *) AB8500_LDO_ANA, }, | 735 | { .name = "ab8500_ldo_ana", .driver_data = (void *) AB8500_LDO_ANA, }, |
736 | }; | 736 | }; |
737 | 737 | ||
738 | static __devinit int | 738 | static int |
739 | ab8500_regulator_of_probe(struct platform_device *pdev, struct device_node *np) | 739 | ab8500_regulator_of_probe(struct platform_device *pdev, struct device_node *np) |
740 | { | 740 | { |
741 | int err, i; | 741 | int err, i; |
@@ -751,7 +751,7 @@ ab8500_regulator_of_probe(struct platform_device *pdev, struct device_node *np) | |||
751 | return 0; | 751 | return 0; |
752 | } | 752 | } |
753 | 753 | ||
754 | static __devinit int ab8500_regulator_probe(struct platform_device *pdev) | 754 | static int ab8500_regulator_probe(struct platform_device *pdev) |
755 | { | 755 | { |
756 | struct ab8500 *ab8500 = dev_get_drvdata(pdev->dev.parent); | 756 | struct ab8500 *ab8500 = dev_get_drvdata(pdev->dev.parent); |
757 | struct ab8500_platform_data *pdata; | 757 | struct ab8500_platform_data *pdata; |
diff --git a/drivers/regulator/ad5398.c b/drivers/regulator/ad5398.c index 7921d014bcaf..cd855d9ac38a 100644 --- a/drivers/regulator/ad5398.c +++ b/drivers/regulator/ad5398.c | |||
@@ -211,7 +211,7 @@ static const struct i2c_device_id ad5398_id[] = { | |||
211 | }; | 211 | }; |
212 | MODULE_DEVICE_TABLE(i2c, ad5398_id); | 212 | MODULE_DEVICE_TABLE(i2c, ad5398_id); |
213 | 213 | ||
214 | static int __devinit ad5398_probe(struct i2c_client *client, | 214 | static int ad5398_probe(struct i2c_client *client, |
215 | const struct i2c_device_id *id) | 215 | const struct i2c_device_id *id) |
216 | { | 216 | { |
217 | struct regulator_init_data *init_data = client->dev.platform_data; | 217 | struct regulator_init_data *init_data = client->dev.platform_data; |
diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c index e8ae65657345..a900c2992f25 100644 --- a/drivers/regulator/anatop-regulator.c +++ b/drivers/regulator/anatop-regulator.c | |||
@@ -87,7 +87,7 @@ static struct regulator_ops anatop_rops = { | |||
87 | .map_voltage = regulator_map_voltage_linear, | 87 | .map_voltage = regulator_map_voltage_linear, |
88 | }; | 88 | }; |
89 | 89 | ||
90 | static int __devinit anatop_regulator_probe(struct platform_device *pdev) | 90 | static int anatop_regulator_probe(struct platform_device *pdev) |
91 | { | 91 | { |
92 | struct device *dev = &pdev->dev; | 92 | struct device *dev = &pdev->dev; |
93 | struct device_node *np = dev->of_node; | 93 | struct device_node *np = dev->of_node; |
diff --git a/drivers/regulator/arizona-ldo1.c b/drivers/regulator/arizona-ldo1.c index 7502394ef6ff..7e9ad7cb8676 100644 --- a/drivers/regulator/arizona-ldo1.c +++ b/drivers/regulator/arizona-ldo1.c | |||
@@ -67,7 +67,7 @@ static const struct regulator_init_data arizona_ldo1_default = { | |||
67 | .num_consumer_supplies = 1, | 67 | .num_consumer_supplies = 1, |
68 | }; | 68 | }; |
69 | 69 | ||
70 | static __devinit int arizona_ldo1_probe(struct platform_device *pdev) | 70 | static int arizona_ldo1_probe(struct platform_device *pdev) |
71 | { | 71 | { |
72 | struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); | 72 | struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); |
73 | struct regulator_config config = { }; | 73 | struct regulator_config config = { }; |
diff --git a/drivers/regulator/arizona-micsupp.c b/drivers/regulator/arizona-micsupp.c index 8c6eeba766a5..3c3631c044fd 100644 --- a/drivers/regulator/arizona-micsupp.c +++ b/drivers/regulator/arizona-micsupp.c | |||
@@ -115,7 +115,7 @@ static const struct regulator_init_data arizona_micsupp_default = { | |||
115 | .num_consumer_supplies = 1, | 115 | .num_consumer_supplies = 1, |
116 | }; | 116 | }; |
117 | 117 | ||
118 | static __devinit int arizona_micsupp_probe(struct platform_device *pdev) | 118 | static int arizona_micsupp_probe(struct platform_device *pdev) |
119 | { | 119 | { |
120 | struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); | 120 | struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); |
121 | struct regulator_config config = { }; | 121 | struct regulator_config config = { }; |
diff --git a/drivers/regulator/da903x.c b/drivers/regulator/da903x.c index 43db3a510cbc..ab4a6d677280 100644 --- a/drivers/regulator/da903x.c +++ b/drivers/regulator/da903x.c | |||
@@ -460,7 +460,7 @@ static inline struct da903x_regulator_info *find_regulator_info(int id) | |||
460 | return NULL; | 460 | return NULL; |
461 | } | 461 | } |
462 | 462 | ||
463 | static int __devinit da903x_regulator_probe(struct platform_device *pdev) | 463 | static int da903x_regulator_probe(struct platform_device *pdev) |
464 | { | 464 | { |
465 | struct da903x_regulator_info *ri = NULL; | 465 | struct da903x_regulator_info *ri = NULL; |
466 | struct regulator_dev *rdev; | 466 | struct regulator_dev *rdev; |
diff --git a/drivers/regulator/da9052-regulator.c b/drivers/regulator/da9052-regulator.c index 9caa6e619802..ba703d80a21f 100644 --- a/drivers/regulator/da9052-regulator.c +++ b/drivers/regulator/da9052-regulator.c | |||
@@ -365,7 +365,7 @@ static inline struct da9052_regulator_info *find_regulator_info(u8 chip_id, | |||
365 | return NULL; | 365 | return NULL; |
366 | } | 366 | } |
367 | 367 | ||
368 | static int __devinit da9052_regulator_probe(struct platform_device *pdev) | 368 | static int da9052_regulator_probe(struct platform_device *pdev) |
369 | { | 369 | { |
370 | struct regulator_config config = { }; | 370 | struct regulator_config config = { }; |
371 | struct da9052_regulator *regulator; | 371 | struct da9052_regulator *regulator; |
diff --git a/drivers/regulator/db8500-prcmu.c b/drivers/regulator/db8500-prcmu.c index 359f8d18fc3f..219d162b651e 100644 --- a/drivers/regulator/db8500-prcmu.c +++ b/drivers/regulator/db8500-prcmu.c | |||
@@ -412,7 +412,7 @@ dbx500_regulator_info[DB8500_NUM_REGULATORS] = { | |||
412 | }, | 412 | }, |
413 | }; | 413 | }; |
414 | 414 | ||
415 | static __devinit int db8500_regulator_register(struct platform_device *pdev, | 415 | static int db8500_regulator_register(struct platform_device *pdev, |
416 | struct regulator_init_data *init_data, | 416 | struct regulator_init_data *init_data, |
417 | int id, | 417 | int id, |
418 | struct device_node *np) | 418 | struct device_node *np) |
@@ -474,7 +474,7 @@ static struct of_regulator_match db8500_regulator_matches[] = { | |||
474 | { .name = "db8500_esram34_ret", .driver_data = (void *) DB8500_REGULATOR_SWITCH_ESRAM34RET, }, | 474 | { .name = "db8500_esram34_ret", .driver_data = (void *) DB8500_REGULATOR_SWITCH_ESRAM34RET, }, |
475 | }; | 475 | }; |
476 | 476 | ||
477 | static __devinit int | 477 | static int |
478 | db8500_regulator_of_probe(struct platform_device *pdev, | 478 | db8500_regulator_of_probe(struct platform_device *pdev, |
479 | struct device_node *np) | 479 | struct device_node *np) |
480 | { | 480 | { |
@@ -491,7 +491,7 @@ db8500_regulator_of_probe(struct platform_device *pdev, | |||
491 | return 0; | 491 | return 0; |
492 | } | 492 | } |
493 | 493 | ||
494 | static int __devinit db8500_regulator_probe(struct platform_device *pdev) | 494 | static int db8500_regulator_probe(struct platform_device *pdev) |
495 | { | 495 | { |
496 | struct regulator_init_data *db8500_init_data = | 496 | struct regulator_init_data *db8500_init_data = |
497 | dev_get_platdata(&pdev->dev); | 497 | dev_get_platdata(&pdev->dev); |
diff --git a/drivers/regulator/dbx500-prcmu.c b/drivers/regulator/dbx500-prcmu.c index f2e5ecdc5864..afc3e89940ed 100644 --- a/drivers/regulator/dbx500-prcmu.c +++ b/drivers/regulator/dbx500-prcmu.c | |||
@@ -173,7 +173,7 @@ int __attribute__((weak)) dbx500_regulator_testcase( | |||
173 | return 0; | 173 | return 0; |
174 | } | 174 | } |
175 | 175 | ||
176 | int __devinit | 176 | int |
177 | ux500_regulator_debug_init(struct platform_device *pdev, | 177 | ux500_regulator_debug_init(struct platform_device *pdev, |
178 | struct dbx500_regulator_info *regulator_info, | 178 | struct dbx500_regulator_info *regulator_info, |
179 | int num_regulators) | 179 | int num_regulators) |
diff --git a/drivers/regulator/dummy.c b/drivers/regulator/dummy.c index 03a1d7c11ef2..df9f42524abb 100644 --- a/drivers/regulator/dummy.c +++ b/drivers/regulator/dummy.c | |||
@@ -37,7 +37,7 @@ static struct regulator_desc dummy_desc = { | |||
37 | .ops = &dummy_ops, | 37 | .ops = &dummy_ops, |
38 | }; | 38 | }; |
39 | 39 | ||
40 | static int __devinit dummy_regulator_probe(struct platform_device *pdev) | 40 | static int dummy_regulator_probe(struct platform_device *pdev) |
41 | { | 41 | { |
42 | struct regulator_config config = { }; | 42 | struct regulator_config config = { }; |
43 | int ret; | 43 | int ret; |
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index 5279eff3a53f..199172a3bbfa 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c | |||
@@ -230,7 +230,7 @@ static struct regmap_config fan53555_regmap_config = { | |||
230 | .val_bits = 8, | 230 | .val_bits = 8, |
231 | }; | 231 | }; |
232 | 232 | ||
233 | static int __devinit fan53555_regulator_probe(struct i2c_client *client, | 233 | static int fan53555_regulator_probe(struct i2c_client *client, |
234 | const struct i2c_device_id *id) | 234 | const struct i2c_device_id *id) |
235 | { | 235 | { |
236 | struct fan53555_device_info *di; | 236 | struct fan53555_device_info *di; |
diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index 73a6a59d703e..5aa0be00cc31 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c | |||
@@ -134,7 +134,7 @@ static struct regulator_ops fixed_voltage_ops = { | |||
134 | .list_voltage = fixed_voltage_list_voltage, | 134 | .list_voltage = fixed_voltage_list_voltage, |
135 | }; | 135 | }; |
136 | 136 | ||
137 | static int __devinit reg_fixed_voltage_probe(struct platform_device *pdev) | 137 | static int reg_fixed_voltage_probe(struct platform_device *pdev) |
138 | { | 138 | { |
139 | struct fixed_voltage_config *config; | 139 | struct fixed_voltage_config *config; |
140 | struct fixed_voltage_data *drvdata; | 140 | struct fixed_voltage_data *drvdata; |
diff --git a/drivers/regulator/gpio-regulator.c b/drivers/regulator/gpio-regulator.c index 902e041a3304..5ffee5ec3660 100644 --- a/drivers/regulator/gpio-regulator.c +++ b/drivers/regulator/gpio-regulator.c | |||
@@ -220,7 +220,7 @@ static struct regulator_ops gpio_regulator_current_ops = { | |||
220 | .set_current_limit = gpio_regulator_set_current_limit, | 220 | .set_current_limit = gpio_regulator_set_current_limit, |
221 | }; | 221 | }; |
222 | 222 | ||
223 | static int __devinit gpio_regulator_probe(struct platform_device *pdev) | 223 | static int gpio_regulator_probe(struct platform_device *pdev) |
224 | { | 224 | { |
225 | struct gpio_regulator_config *config = pdev->dev.platform_data; | 225 | struct gpio_regulator_config *config = pdev->dev.platform_data; |
226 | struct device_node *np = pdev->dev.of_node; | 226 | struct device_node *np = pdev->dev.of_node; |
diff --git a/drivers/regulator/isl6271a-regulator.c b/drivers/regulator/isl6271a-regulator.c index 2c415e9eaefc..1732108dda49 100644 --- a/drivers/regulator/isl6271a-regulator.c +++ b/drivers/regulator/isl6271a-regulator.c | |||
@@ -106,7 +106,7 @@ static const struct regulator_desc isl_rd[] = { | |||
106 | }, | 106 | }, |
107 | }; | 107 | }; |
108 | 108 | ||
109 | static int __devinit isl6271a_probe(struct i2c_client *i2c, | 109 | static int isl6271a_probe(struct i2c_client *i2c, |
110 | const struct i2c_device_id *id) | 110 | const struct i2c_device_id *id) |
111 | { | 111 | { |
112 | struct regulator_config config = { }; | 112 | struct regulator_config config = { }; |
diff --git a/drivers/regulator/lp3971.c b/drivers/regulator/lp3971.c index e10726a9f455..95b7299e3ed2 100644 --- a/drivers/regulator/lp3971.c +++ b/drivers/regulator/lp3971.c | |||
@@ -386,7 +386,7 @@ static int lp3971_set_bits(struct lp3971 *lp3971, u8 reg, u16 mask, u16 val) | |||
386 | return ret; | 386 | return ret; |
387 | } | 387 | } |
388 | 388 | ||
389 | static int __devinit setup_regulators(struct lp3971 *lp3971, | 389 | static int setup_regulators(struct lp3971 *lp3971, |
390 | struct lp3971_platform_data *pdata) | 390 | struct lp3971_platform_data *pdata) |
391 | { | 391 | { |
392 | int i, err; | 392 | int i, err; |
@@ -429,7 +429,7 @@ err_nomem: | |||
429 | return err; | 429 | return err; |
430 | } | 430 | } |
431 | 431 | ||
432 | static int __devinit lp3971_i2c_probe(struct i2c_client *i2c, | 432 | static int lp3971_i2c_probe(struct i2c_client *i2c, |
433 | const struct i2c_device_id *id) | 433 | const struct i2c_device_id *id) |
434 | { | 434 | { |
435 | struct lp3971 *lp3971; | 435 | struct lp3971 *lp3971; |
diff --git a/drivers/regulator/lp3972.c b/drivers/regulator/lp3972.c index 262f2d2530b0..acf71beb1f57 100644 --- a/drivers/regulator/lp3972.c +++ b/drivers/regulator/lp3972.c | |||
@@ -481,7 +481,7 @@ static const struct regulator_desc regulators[] = { | |||
481 | }, | 481 | }, |
482 | }; | 482 | }; |
483 | 483 | ||
484 | static int __devinit setup_regulators(struct lp3972 *lp3972, | 484 | static int setup_regulators(struct lp3972 *lp3972, |
485 | struct lp3972_platform_data *pdata) | 485 | struct lp3972_platform_data *pdata) |
486 | { | 486 | { |
487 | int i, err; | 487 | int i, err; |
@@ -523,7 +523,7 @@ err_nomem: | |||
523 | return err; | 523 | return err; |
524 | } | 524 | } |
525 | 525 | ||
526 | static int __devinit lp3972_i2c_probe(struct i2c_client *i2c, | 526 | static int lp3972_i2c_probe(struct i2c_client *i2c, |
527 | const struct i2c_device_id *id) | 527 | const struct i2c_device_id *id) |
528 | { | 528 | { |
529 | struct lp3972 *lp3972; | 529 | struct lp3972 *lp3972; |
diff --git a/drivers/regulator/lp8788-buck.c b/drivers/regulator/lp8788-buck.c index 35643d2a80e8..1a3623ac066c 100644 --- a/drivers/regulator/lp8788-buck.c +++ b/drivers/regulator/lp8788-buck.c | |||
@@ -504,7 +504,7 @@ set_default_dvs_mode: | |||
504 | default_dvs_mode[id]); | 504 | default_dvs_mode[id]); |
505 | } | 505 | } |
506 | 506 | ||
507 | static __devinit int lp8788_buck_probe(struct platform_device *pdev) | 507 | static int lp8788_buck_probe(struct platform_device *pdev) |
508 | { | 508 | { |
509 | struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); | 509 | struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); |
510 | int id = pdev->id; | 510 | int id = pdev->id; |
diff --git a/drivers/regulator/lp8788-ldo.c b/drivers/regulator/lp8788-ldo.c index 93399f151a5d..e69a5b62f443 100644 --- a/drivers/regulator/lp8788-ldo.c +++ b/drivers/regulator/lp8788-ldo.c | |||
@@ -712,7 +712,7 @@ set_default_ldo_enable_mode: | |||
712 | val[enable_id]); | 712 | val[enable_id]); |
713 | } | 713 | } |
714 | 714 | ||
715 | static __devinit int lp8788_dldo_probe(struct platform_device *pdev) | 715 | static int lp8788_dldo_probe(struct platform_device *pdev) |
716 | { | 716 | { |
717 | struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); | 717 | struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); |
718 | int id = pdev->id; | 718 | int id = pdev->id; |
@@ -768,7 +768,7 @@ static struct platform_driver lp8788_dldo_driver = { | |||
768 | }, | 768 | }, |
769 | }; | 769 | }; |
770 | 770 | ||
771 | static __devinit int lp8788_aldo_probe(struct platform_device *pdev) | 771 | static int lp8788_aldo_probe(struct platform_device *pdev) |
772 | { | 772 | { |
773 | struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); | 773 | struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); |
774 | int id = pdev->id; | 774 | int id = pdev->id; |
diff --git a/drivers/regulator/max1586.c b/drivers/regulator/max1586.c index 184a92feca70..1609810a9a3d 100644 --- a/drivers/regulator/max1586.c +++ b/drivers/regulator/max1586.c | |||
@@ -125,7 +125,7 @@ static struct regulator_desc max1586_reg[] = { | |||
125 | }, | 125 | }, |
126 | }; | 126 | }; |
127 | 127 | ||
128 | static int __devinit max1586_pmic_probe(struct i2c_client *client, | 128 | static int max1586_pmic_probe(struct i2c_client *client, |
129 | const struct i2c_device_id *i2c_id) | 129 | const struct i2c_device_id *i2c_id) |
130 | { | 130 | { |
131 | struct regulator_dev **rdev; | 131 | struct regulator_dev **rdev; |
diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c index 7374f5edab0c..da028d055ec7 100644 --- a/drivers/regulator/max77686.c +++ b/drivers/regulator/max77686.c | |||
@@ -280,7 +280,7 @@ static int max77686_pmic_dt_parse_pdata(struct max77686_dev *iodev, | |||
280 | } | 280 | } |
281 | #endif /* CONFIG_OF */ | 281 | #endif /* CONFIG_OF */ |
282 | 282 | ||
283 | static __devinit int max77686_pmic_probe(struct platform_device *pdev) | 283 | static int max77686_pmic_probe(struct platform_device *pdev) |
284 | { | 284 | { |
285 | struct max77686_dev *iodev = dev_get_drvdata(pdev->dev.parent); | 285 | struct max77686_dev *iodev = dev_get_drvdata(pdev->dev.parent); |
286 | struct max77686_platform_data *pdata = dev_get_platdata(iodev->dev); | 286 | struct max77686_platform_data *pdata = dev_get_platdata(iodev->dev); |
diff --git a/drivers/regulator/max8649.c b/drivers/regulator/max8649.c index d78d4aa37167..d4397f95f741 100644 --- a/drivers/regulator/max8649.c +++ b/drivers/regulator/max8649.c | |||
@@ -176,7 +176,7 @@ static struct regmap_config max8649_regmap_config = { | |||
176 | .val_bits = 8, | 176 | .val_bits = 8, |
177 | }; | 177 | }; |
178 | 178 | ||
179 | static int __devinit max8649_regulator_probe(struct i2c_client *client, | 179 | static int max8649_regulator_probe(struct i2c_client *client, |
180 | const struct i2c_device_id *id) | 180 | const struct i2c_device_id *id) |
181 | { | 181 | { |
182 | struct max8649_platform_data *pdata = client->dev.platform_data; | 182 | struct max8649_platform_data *pdata = client->dev.platform_data; |
diff --git a/drivers/regulator/max8660.c b/drivers/regulator/max8660.c index b009a5e7942b..a44589f36a31 100644 --- a/drivers/regulator/max8660.c +++ b/drivers/regulator/max8660.c | |||
@@ -305,7 +305,7 @@ static const struct regulator_desc max8660_reg[] = { | |||
305 | }, | 305 | }, |
306 | }; | 306 | }; |
307 | 307 | ||
308 | static int __devinit max8660_probe(struct i2c_client *client, | 308 | static int max8660_probe(struct i2c_client *client, |
309 | const struct i2c_device_id *i2c_id) | 309 | const struct i2c_device_id *i2c_id) |
310 | { | 310 | { |
311 | struct regulator_dev **rdev; | 311 | struct regulator_dev **rdev; |
diff --git a/drivers/regulator/max8907-regulator.c b/drivers/regulator/max8907-regulator.c index 882e7cb3c943..99bae75970f1 100644 --- a/drivers/regulator/max8907-regulator.c +++ b/drivers/regulator/max8907-regulator.c | |||
@@ -275,7 +275,7 @@ static inline struct device_node *match_of_node(int index) | |||
275 | } | 275 | } |
276 | #endif | 276 | #endif |
277 | 277 | ||
278 | static __devinit int max8907_regulator_probe(struct platform_device *pdev) | 278 | static int max8907_regulator_probe(struct platform_device *pdev) |
279 | { | 279 | { |
280 | struct max8907 *max8907 = dev_get_drvdata(pdev->dev.parent); | 280 | struct max8907 *max8907 = dev_get_drvdata(pdev->dev.parent); |
281 | struct max8907_platform_data *pdata = dev_get_platdata(max8907->dev); | 281 | struct max8907_platform_data *pdata = dev_get_platdata(max8907->dev); |
diff --git a/drivers/regulator/max8925-regulator.c b/drivers/regulator/max8925-regulator.c index 85d419ed4a46..cd06708f4af4 100644 --- a/drivers/regulator/max8925-regulator.c +++ b/drivers/regulator/max8925-regulator.c | |||
@@ -274,7 +274,7 @@ static int max8925_regulator_dt_init(struct platform_device *pdev, | |||
274 | #define max8925_regulator_dt_init(w, x, y, z) (-1) | 274 | #define max8925_regulator_dt_init(w, x, y, z) (-1) |
275 | #endif | 275 | #endif |
276 | 276 | ||
277 | static int __devinit max8925_regulator_probe(struct platform_device *pdev) | 277 | static int max8925_regulator_probe(struct platform_device *pdev) |
278 | { | 278 | { |
279 | struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent); | 279 | struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent); |
280 | struct regulator_init_data *pdata = pdev->dev.platform_data; | 280 | struct regulator_init_data *pdata = pdev->dev.platform_data; |
diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c index d575e5f92cdd..21862080fdc8 100644 --- a/drivers/regulator/max8952.c +++ b/drivers/regulator/max8952.c | |||
@@ -126,7 +126,7 @@ static const struct regulator_desc regulator = { | |||
126 | .owner = THIS_MODULE, | 126 | .owner = THIS_MODULE, |
127 | }; | 127 | }; |
128 | 128 | ||
129 | static int __devinit max8952_pmic_probe(struct i2c_client *client, | 129 | static int max8952_pmic_probe(struct i2c_client *client, |
130 | const struct i2c_device_id *i2c_id) | 130 | const struct i2c_device_id *i2c_id) |
131 | { | 131 | { |
132 | struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); | 132 | struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); |
diff --git a/drivers/regulator/max8997.c b/drivers/regulator/max8997.c index 2b97ec8f6a83..323ec2b14edb 100644 --- a/drivers/regulator/max8997.c +++ b/drivers/regulator/max8997.c | |||
@@ -933,7 +933,7 @@ static struct regulator_desc regulators[] = { | |||
933 | max8997_charger_fixedstate_ops), | 933 | max8997_charger_fixedstate_ops), |
934 | }; | 934 | }; |
935 | 935 | ||
936 | static __devinit int max8997_pmic_probe(struct platform_device *pdev) | 936 | static int max8997_pmic_probe(struct platform_device *pdev) |
937 | { | 937 | { |
938 | struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); | 938 | struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); |
939 | struct max8997_platform_data *pdata = dev_get_platdata(iodev->dev); | 939 | struct max8997_platform_data *pdata = dev_get_platdata(iodev->dev); |
diff --git a/drivers/regulator/max8998.c b/drivers/regulator/max8998.c index 1edb01c9bdcd..d80ce6c58ee5 100644 --- a/drivers/regulator/max8998.c +++ b/drivers/regulator/max8998.c | |||
@@ -633,7 +633,7 @@ static struct regulator_desc regulators[] = { | |||
633 | } | 633 | } |
634 | }; | 634 | }; |
635 | 635 | ||
636 | static __devinit int max8998_pmic_probe(struct platform_device *pdev) | 636 | static int max8998_pmic_probe(struct platform_device *pdev) |
637 | { | 637 | { |
638 | struct max8998_dev *iodev = dev_get_drvdata(pdev->dev.parent); | 638 | struct max8998_dev *iodev = dev_get_drvdata(pdev->dev.parent); |
639 | struct max8998_platform_data *pdata = dev_get_platdata(iodev->dev); | 639 | struct max8998_platform_data *pdata = dev_get_platdata(iodev->dev); |
diff --git a/drivers/regulator/mc13783-regulator.c b/drivers/regulator/mc13783-regulator.c index 940f659f6318..54f42b3d964c 100644 --- a/drivers/regulator/mc13783-regulator.c +++ b/drivers/regulator/mc13783-regulator.c | |||
@@ -392,7 +392,7 @@ static struct regulator_ops mc13783_gpo_regulator_ops = { | |||
392 | .set_voltage = mc13xxx_fixed_regulator_set_voltage, | 392 | .set_voltage = mc13xxx_fixed_regulator_set_voltage, |
393 | }; | 393 | }; |
394 | 394 | ||
395 | static int __devinit mc13783_regulator_probe(struct platform_device *pdev) | 395 | static int mc13783_regulator_probe(struct platform_device *pdev) |
396 | { | 396 | { |
397 | struct mc13xxx_regulator_priv *priv; | 397 | struct mc13xxx_regulator_priv *priv; |
398 | struct mc13xxx *mc13783 = dev_get_drvdata(pdev->dev.parent); | 398 | struct mc13xxx *mc13783 = dev_get_drvdata(pdev->dev.parent); |
diff --git a/drivers/regulator/mc13892-regulator.c b/drivers/regulator/mc13892-regulator.c index f3646cffa7ba..9804a313da2f 100644 --- a/drivers/regulator/mc13892-regulator.c +++ b/drivers/regulator/mc13892-regulator.c | |||
@@ -486,7 +486,7 @@ static unsigned int mc13892_vcam_get_mode(struct regulator_dev *rdev) | |||
486 | } | 486 | } |
487 | 487 | ||
488 | 488 | ||
489 | static int __devinit mc13892_regulator_probe(struct platform_device *pdev) | 489 | static int mc13892_regulator_probe(struct platform_device *pdev) |
490 | { | 490 | { |
491 | struct mc13xxx_regulator_priv *priv; | 491 | struct mc13xxx_regulator_priv *priv; |
492 | struct mc13xxx *mc13892 = dev_get_drvdata(pdev->dev.parent); | 492 | struct mc13xxx *mc13892 = dev_get_drvdata(pdev->dev.parent); |
diff --git a/drivers/regulator/mc13xxx-regulator-core.c b/drivers/regulator/mc13xxx-regulator-core.c index 88cbb832d555..4ed89c654110 100644 --- a/drivers/regulator/mc13xxx-regulator-core.c +++ b/drivers/regulator/mc13xxx-regulator-core.c | |||
@@ -162,7 +162,7 @@ struct regulator_ops mc13xxx_fixed_regulator_ops = { | |||
162 | EXPORT_SYMBOL_GPL(mc13xxx_fixed_regulator_ops); | 162 | EXPORT_SYMBOL_GPL(mc13xxx_fixed_regulator_ops); |
163 | 163 | ||
164 | #ifdef CONFIG_OF | 164 | #ifdef CONFIG_OF |
165 | int __devinit mc13xxx_get_num_regulators_dt(struct platform_device *pdev) | 165 | int mc13xxx_get_num_regulators_dt(struct platform_device *pdev) |
166 | { | 166 | { |
167 | struct device_node *parent, *child; | 167 | struct device_node *parent, *child; |
168 | int num = 0; | 168 | int num = 0; |
@@ -179,7 +179,7 @@ int __devinit mc13xxx_get_num_regulators_dt(struct platform_device *pdev) | |||
179 | } | 179 | } |
180 | EXPORT_SYMBOL_GPL(mc13xxx_get_num_regulators_dt); | 180 | EXPORT_SYMBOL_GPL(mc13xxx_get_num_regulators_dt); |
181 | 181 | ||
182 | struct mc13xxx_regulator_init_data * __devinit mc13xxx_parse_regulators_dt( | 182 | struct mc13xxx_regulator_init_data *mc13xxx_parse_regulators_dt( |
183 | struct platform_device *pdev, struct mc13xxx_regulator *regulators, | 183 | struct platform_device *pdev, struct mc13xxx_regulator *regulators, |
184 | int num_regulators) | 184 | int num_regulators) |
185 | { | 185 | { |
diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c index 4e0d3b5934d3..b04774492bc0 100644 --- a/drivers/regulator/palmas-regulator.c +++ b/drivers/regulator/palmas-regulator.c | |||
@@ -595,7 +595,7 @@ static struct of_regulator_match palmas_matches[] = { | |||
595 | { .name = "ldousb", }, | 595 | { .name = "ldousb", }, |
596 | }; | 596 | }; |
597 | 597 | ||
598 | static void __devinit palmas_dt_to_pdata(struct device *dev, | 598 | static void palmas_dt_to_pdata(struct device *dev, |
599 | struct device_node *node, | 599 | struct device_node *node, |
600 | struct palmas_pmic_platform_data *pdata) | 600 | struct palmas_pmic_platform_data *pdata) |
601 | { | 601 | { |
@@ -663,7 +663,7 @@ static void __devinit palmas_dt_to_pdata(struct device *dev, | |||
663 | } | 663 | } |
664 | 664 | ||
665 | 665 | ||
666 | static __devinit int palmas_probe(struct platform_device *pdev) | 666 | static int palmas_probe(struct platform_device *pdev) |
667 | { | 667 | { |
668 | struct palmas *palmas = dev_get_drvdata(pdev->dev.parent); | 668 | struct palmas *palmas = dev_get_drvdata(pdev->dev.parent); |
669 | struct palmas_pmic_platform_data *pdata = pdev->dev.platform_data; | 669 | struct palmas_pmic_platform_data *pdata = pdev->dev.platform_data; |
diff --git a/drivers/regulator/pcap-regulator.c b/drivers/regulator/pcap-regulator.c index 1f349bfd6717..4f3e445ec854 100644 --- a/drivers/regulator/pcap-regulator.c +++ b/drivers/regulator/pcap-regulator.c | |||
@@ -236,7 +236,7 @@ static const struct regulator_desc pcap_regulators[] = { | |||
236 | VREG(VAUX4), VREG(VSIM), VREG(VSIM2), VREG(VVIB), VREG(SW1), VREG(SW2), | 236 | VREG(VAUX4), VREG(VSIM), VREG(VSIM2), VREG(VVIB), VREG(SW1), VREG(SW2), |
237 | }; | 237 | }; |
238 | 238 | ||
239 | static int __devinit pcap_regulator_probe(struct platform_device *pdev) | 239 | static int pcap_regulator_probe(struct platform_device *pdev) |
240 | { | 240 | { |
241 | struct regulator_dev *rdev; | 241 | struct regulator_dev *rdev; |
242 | void *pcap = dev_get_drvdata(pdev->dev.parent); | 242 | void *pcap = dev_get_drvdata(pdev->dev.parent); |
diff --git a/drivers/regulator/pcf50633-regulator.c b/drivers/regulator/pcf50633-regulator.c index 02c9e1c5d4ca..51cb1bb3a2a7 100644 --- a/drivers/regulator/pcf50633-regulator.c +++ b/drivers/regulator/pcf50633-regulator.c | |||
@@ -196,7 +196,7 @@ static const struct regulator_desc regulators[] = { | |||
196 | [PCF50633_REGULATOR_MEMLDO] = PCF50633_REGULATOR("memldo", MEMLDO, 28), | 196 | [PCF50633_REGULATOR_MEMLDO] = PCF50633_REGULATOR("memldo", MEMLDO, 28), |
197 | }; | 197 | }; |
198 | 198 | ||
199 | static int __devinit pcf50633_regulator_probe(struct platform_device *pdev) | 199 | static int pcf50633_regulator_probe(struct platform_device *pdev) |
200 | { | 200 | { |
201 | struct regulator_dev *rdev; | 201 | struct regulator_dev *rdev; |
202 | struct pcf50633 *pcf; | 202 | struct pcf50633 *pcf; |
diff --git a/drivers/regulator/rc5t583-regulator.c b/drivers/regulator/rc5t583-regulator.c index ca2b5edcdb82..7f83f3345405 100644 --- a/drivers/regulator/rc5t583-regulator.c +++ b/drivers/regulator/rc5t583-regulator.c | |||
@@ -119,7 +119,7 @@ static struct rc5t583_regulator_info rc5t583_reg_info[RC5T583_REGULATOR_MAX] = { | |||
119 | RC5T583_REG(LDO9, LDOEN1, 1, LDODIS1, 1, 0x7F, 900, 3400, 25000, 133), | 119 | RC5T583_REG(LDO9, LDOEN1, 1, LDODIS1, 1, 0x7F, 900, 3400, 25000, 133), |
120 | }; | 120 | }; |
121 | 121 | ||
122 | static int __devinit rc5t583_regulator_probe(struct platform_device *pdev) | 122 | static int rc5t583_regulator_probe(struct platform_device *pdev) |
123 | { | 123 | { |
124 | struct rc5t583 *rc5t583 = dev_get_drvdata(pdev->dev.parent); | 124 | struct rc5t583 *rc5t583 = dev_get_drvdata(pdev->dev.parent); |
125 | struct rc5t583_platform_data *pdata = dev_get_platdata(rc5t583->dev); | 125 | struct rc5t583_platform_data *pdata = dev_get_platdata(rc5t583->dev); |
diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c index c2723caf15ea..c918e99f937a 100644 --- a/drivers/regulator/s2mps11.c +++ b/drivers/regulator/s2mps11.c | |||
@@ -231,7 +231,7 @@ static struct regulator_desc regulators[] = { | |||
231 | regulator_desc_buck10, | 231 | regulator_desc_buck10, |
232 | }; | 232 | }; |
233 | 233 | ||
234 | static __devinit int s2mps11_pmic_probe(struct platform_device *pdev) | 234 | static int s2mps11_pmic_probe(struct platform_device *pdev) |
235 | { | 235 | { |
236 | struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); | 236 | struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); |
237 | struct sec_platform_data *pdata = dev_get_platdata(iodev->dev); | 237 | struct sec_platform_data *pdata = dev_get_platdata(iodev->dev); |
diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index d606ca0347b6..15f3ccac758c 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers/regulator/s5m8767.c | |||
@@ -499,7 +499,7 @@ static struct regulator_desc regulators[] = { | |||
499 | s5m8767_regulator_desc(BUCK9), | 499 | s5m8767_regulator_desc(BUCK9), |
500 | }; | 500 | }; |
501 | 501 | ||
502 | static __devinit int s5m8767_pmic_probe(struct platform_device *pdev) | 502 | static int s5m8767_pmic_probe(struct platform_device *pdev) |
503 | { | 503 | { |
504 | struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); | 504 | struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); |
505 | struct sec_platform_data *pdata = dev_get_platdata(iodev->dev); | 505 | struct sec_platform_data *pdata = dev_get_platdata(iodev->dev); |
diff --git a/drivers/regulator/tps51632-regulator.c b/drivers/regulator/tps51632-regulator.c index 687b0ccc5441..ff79a468cd99 100644 --- a/drivers/regulator/tps51632-regulator.c +++ b/drivers/regulator/tps51632-regulator.c | |||
@@ -157,7 +157,7 @@ static struct regulator_ops tps51632_dcdc_ops = { | |||
157 | .set_ramp_delay = tps51632_dcdc_set_ramp_delay, | 157 | .set_ramp_delay = tps51632_dcdc_set_ramp_delay, |
158 | }; | 158 | }; |
159 | 159 | ||
160 | static int __devinit tps51632_init_dcdc(struct tps51632_chip *tps, | 160 | static int tps51632_init_dcdc(struct tps51632_chip *tps, |
161 | struct tps51632_regulator_platform_data *pdata) | 161 | struct tps51632_regulator_platform_data *pdata) |
162 | { | 162 | { |
163 | int ret; | 163 | int ret; |
@@ -227,7 +227,7 @@ static const struct regmap_config tps51632_regmap_config = { | |||
227 | .cache_type = REGCACHE_RBTREE, | 227 | .cache_type = REGCACHE_RBTREE, |
228 | }; | 228 | }; |
229 | 229 | ||
230 | static int __devinit tps51632_probe(struct i2c_client *client, | 230 | static int tps51632_probe(struct i2c_client *client, |
231 | const struct i2c_device_id *id) | 231 | const struct i2c_device_id *id) |
232 | { | 232 | { |
233 | struct tps51632_regulator_platform_data *pdata; | 233 | struct tps51632_regulator_platform_data *pdata; |
diff --git a/drivers/regulator/tps6105x-regulator.c b/drivers/regulator/tps6105x-regulator.c index 9516f44474ef..f8c0c9273399 100644 --- a/drivers/regulator/tps6105x-regulator.c +++ b/drivers/regulator/tps6105x-regulator.c | |||
@@ -127,7 +127,7 @@ static const struct regulator_desc tps6105x_regulator_desc = { | |||
127 | /* | 127 | /* |
128 | * Registers the chip as a voltage regulator | 128 | * Registers the chip as a voltage regulator |
129 | */ | 129 | */ |
130 | static int __devinit tps6105x_regulator_probe(struct platform_device *pdev) | 130 | static int tps6105x_regulator_probe(struct platform_device *pdev) |
131 | { | 131 | { |
132 | struct tps6105x *tps6105x = dev_get_platdata(&pdev->dev); | 132 | struct tps6105x *tps6105x = dev_get_platdata(&pdev->dev); |
133 | struct tps6105x_platform_data *pdata = tps6105x->pdata; | 133 | struct tps6105x_platform_data *pdata = tps6105x->pdata; |
diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c index bd0f9f850b52..7fba9ffab22c 100644 --- a/drivers/regulator/tps62360-regulator.c +++ b/drivers/regulator/tps62360-regulator.c | |||
@@ -243,7 +243,7 @@ static struct regulator_ops tps62360_dcdc_ops = { | |||
243 | .get_mode = tps62360_get_mode, | 243 | .get_mode = tps62360_get_mode, |
244 | }; | 244 | }; |
245 | 245 | ||
246 | static int __devinit tps62360_init_dcdc(struct tps62360_chip *tps, | 246 | static int tps62360_init_dcdc(struct tps62360_chip *tps, |
247 | struct tps62360_regulator_platform_data *pdata) | 247 | struct tps62360_regulator_platform_data *pdata) |
248 | { | 248 | { |
249 | int ret; | 249 | int ret; |
@@ -339,7 +339,7 @@ static const struct of_device_id tps62360_of_match[] = { | |||
339 | MODULE_DEVICE_TABLE(of, tps62360_of_match); | 339 | MODULE_DEVICE_TABLE(of, tps62360_of_match); |
340 | #endif | 340 | #endif |
341 | 341 | ||
342 | static int __devinit tps62360_probe(struct i2c_client *client, | 342 | static int tps62360_probe(struct i2c_client *client, |
343 | const struct i2c_device_id *id) | 343 | const struct i2c_device_id *id) |
344 | { | 344 | { |
345 | struct regulator_config config = { }; | 345 | struct regulator_config config = { }; |
diff --git a/drivers/regulator/tps65023-regulator.c b/drivers/regulator/tps65023-regulator.c index 427b311f4d2a..a039206fd90a 100644 --- a/drivers/regulator/tps65023-regulator.c +++ b/drivers/regulator/tps65023-regulator.c | |||
@@ -219,7 +219,7 @@ static struct regmap_config tps65023_regmap_config = { | |||
219 | .val_bits = 8, | 219 | .val_bits = 8, |
220 | }; | 220 | }; |
221 | 221 | ||
222 | static int __devinit tps_65023_probe(struct i2c_client *client, | 222 | static int tps_65023_probe(struct i2c_client *client, |
223 | const struct i2c_device_id *id) | 223 | const struct i2c_device_id *id) |
224 | { | 224 | { |
225 | const struct tps_driver_data *drv_data = (void *)id->driver_data; | 225 | const struct tps_driver_data *drv_data = (void *)id->driver_data; |
diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c index c953e8f54076..6c45d5af6f93 100644 --- a/drivers/regulator/tps6507x-regulator.c +++ b/drivers/regulator/tps6507x-regulator.c | |||
@@ -356,7 +356,7 @@ static struct regulator_ops tps6507x_pmic_ops = { | |||
356 | .list_voltage = regulator_list_voltage_table, | 356 | .list_voltage = regulator_list_voltage_table, |
357 | }; | 357 | }; |
358 | 358 | ||
359 | static __devinit int tps6507x_pmic_probe(struct platform_device *pdev) | 359 | static int tps6507x_pmic_probe(struct platform_device *pdev) |
360 | { | 360 | { |
361 | struct tps6507x_dev *tps6507x_dev = dev_get_drvdata(pdev->dev.parent); | 361 | struct tps6507x_dev *tps6507x_dev = dev_get_drvdata(pdev->dev.parent); |
362 | struct tps_info *info = &tps6507x_pmic_regs[0]; | 362 | struct tps_info *info = &tps6507x_pmic_regs[0]; |
diff --git a/drivers/regulator/tps65090-regulator.c b/drivers/regulator/tps65090-regulator.c index 99c912be739e..cc5be1f512a8 100644 --- a/drivers/regulator/tps65090-regulator.c +++ b/drivers/regulator/tps65090-regulator.c | |||
@@ -83,7 +83,7 @@ static inline bool is_dcdc(int id) | |||
83 | } | 83 | } |
84 | } | 84 | } |
85 | 85 | ||
86 | static int __devinit tps65090_config_ext_control( | 86 | static int tps65090_config_ext_control( |
87 | struct tps65090_regulator *ri, bool enable) | 87 | struct tps65090_regulator *ri, bool enable) |
88 | { | 88 | { |
89 | int ret; | 89 | int ret; |
@@ -99,7 +99,7 @@ static int __devinit tps65090_config_ext_control( | |||
99 | return ret; | 99 | return ret; |
100 | } | 100 | } |
101 | 101 | ||
102 | static int __devinit tps65090_regulator_disable_ext_control( | 102 | static int tps65090_regulator_disable_ext_control( |
103 | struct tps65090_regulator *ri, | 103 | struct tps65090_regulator *ri, |
104 | struct tps65090_regulator_plat_data *tps_pdata) | 104 | struct tps65090_regulator_plat_data *tps_pdata) |
105 | { | 105 | { |
@@ -122,7 +122,7 @@ static int __devinit tps65090_regulator_disable_ext_control( | |||
122 | return tps65090_config_ext_control(ri, false); | 122 | return tps65090_config_ext_control(ri, false); |
123 | } | 123 | } |
124 | 124 | ||
125 | static void __devinit tps65090_configure_regulator_config( | 125 | static void tps65090_configure_regulator_config( |
126 | struct tps65090_regulator_plat_data *tps_pdata, | 126 | struct tps65090_regulator_plat_data *tps_pdata, |
127 | struct regulator_config *config) | 127 | struct regulator_config *config) |
128 | { | 128 | { |
@@ -138,7 +138,7 @@ static void __devinit tps65090_configure_regulator_config( | |||
138 | } | 138 | } |
139 | } | 139 | } |
140 | 140 | ||
141 | static int __devinit tps65090_regulator_probe(struct platform_device *pdev) | 141 | static int tps65090_regulator_probe(struct platform_device *pdev) |
142 | { | 142 | { |
143 | struct tps65090 *tps65090_mfd = dev_get_drvdata(pdev->dev.parent); | 143 | struct tps65090 *tps65090_mfd = dev_get_drvdata(pdev->dev.parent); |
144 | struct tps65090_regulator *ri = NULL; | 144 | struct tps65090_regulator *ri = NULL; |
diff --git a/drivers/regulator/tps65217-regulator.c b/drivers/regulator/tps65217-regulator.c index 73681ea2f5f4..e34fb8689091 100644 --- a/drivers/regulator/tps65217-regulator.c +++ b/drivers/regulator/tps65217-regulator.c | |||
@@ -332,7 +332,7 @@ static struct tps65217_board *tps65217_parse_dt(struct platform_device *pdev) | |||
332 | } | 332 | } |
333 | #endif | 333 | #endif |
334 | 334 | ||
335 | static int __devinit tps65217_regulator_probe(struct platform_device *pdev) | 335 | static int tps65217_regulator_probe(struct platform_device *pdev) |
336 | { | 336 | { |
337 | struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent); | 337 | struct tps65217 *tps = dev_get_drvdata(pdev->dev.parent); |
338 | struct tps65217_board *pdata = dev_get_platdata(tps->dev); | 338 | struct tps65217_board *pdata = dev_get_platdata(tps->dev); |
diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c index f5a01bc104ac..843ee0a9bb92 100644 --- a/drivers/regulator/tps6524x-regulator.c +++ b/drivers/regulator/tps6524x-regulator.c | |||
@@ -592,7 +592,7 @@ static int pmic_remove(struct spi_device *spi) | |||
592 | return 0; | 592 | return 0; |
593 | } | 593 | } |
594 | 594 | ||
595 | static int __devinit pmic_probe(struct spi_device *spi) | 595 | static int pmic_probe(struct spi_device *spi) |
596 | { | 596 | { |
597 | struct tps6524x *hw; | 597 | struct tps6524x *hw; |
598 | struct device *dev = &spi->dev; | 598 | struct device *dev = &spi->dev; |
diff --git a/drivers/regulator/tps6586x-regulator.c b/drivers/regulator/tps6586x-regulator.c index 491b16a48758..b91400cdbd95 100644 --- a/drivers/regulator/tps6586x-regulator.c +++ b/drivers/regulator/tps6586x-regulator.c | |||
@@ -298,7 +298,7 @@ static inline struct tps6586x_regulator *find_regulator_info(int id) | |||
298 | return NULL; | 298 | return NULL; |
299 | } | 299 | } |
300 | 300 | ||
301 | static int __devinit tps6586x_regulator_probe(struct platform_device *pdev) | 301 | static int tps6586x_regulator_probe(struct platform_device *pdev) |
302 | { | 302 | { |
303 | struct tps6586x_regulator *ri = NULL; | 303 | struct tps6586x_regulator *ri = NULL; |
304 | struct regulator_config config = { }; | 304 | struct regulator_config config = { }; |
diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c index 2e1e57bb0792..276eeb5c12ca 100644 --- a/drivers/regulator/tps65910-regulator.c +++ b/drivers/regulator/tps65910-regulator.c | |||
@@ -1026,7 +1026,7 @@ static inline struct tps65910_board *tps65910_parse_dt_reg_data( | |||
1026 | } | 1026 | } |
1027 | #endif | 1027 | #endif |
1028 | 1028 | ||
1029 | static __devinit int tps65910_probe(struct platform_device *pdev) | 1029 | static int tps65910_probe(struct platform_device *pdev) |
1030 | { | 1030 | { |
1031 | struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); | 1031 | struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); |
1032 | struct regulator_config config = { }; | 1032 | struct regulator_config config = { }; |
diff --git a/drivers/regulator/tps65912-regulator.c b/drivers/regulator/tps65912-regulator.c index ba7e62335e2b..35b2a6fb8614 100644 --- a/drivers/regulator/tps65912-regulator.c +++ b/drivers/regulator/tps65912-regulator.c | |||
@@ -459,7 +459,7 @@ static struct regulator_ops tps65912_ops_ldo = { | |||
459 | .list_voltage = tps65912_list_voltage, | 459 | .list_voltage = tps65912_list_voltage, |
460 | }; | 460 | }; |
461 | 461 | ||
462 | static __devinit int tps65912_probe(struct platform_device *pdev) | 462 | static int tps65912_probe(struct platform_device *pdev) |
463 | { | 463 | { |
464 | struct tps65912 *tps65912 = dev_get_drvdata(pdev->dev.parent); | 464 | struct tps65912 *tps65912 = dev_get_drvdata(pdev->dev.parent); |
465 | struct regulator_config config = { }; | 465 | struct regulator_config config = { }; |
diff --git a/drivers/regulator/tps80031-regulator.c b/drivers/regulator/tps80031-regulator.c index d90c23b44ad4..cdfcbc9c51a3 100644 --- a/drivers/regulator/tps80031-regulator.c +++ b/drivers/regulator/tps80031-regulator.c | |||
@@ -675,7 +675,7 @@ static int check_smps_mode_mult(struct device *parent, | |||
675 | return 0; | 675 | return 0; |
676 | } | 676 | } |
677 | 677 | ||
678 | static int __devinit tps80031_regulator_probe(struct platform_device *pdev) | 678 | static int tps80031_regulator_probe(struct platform_device *pdev) |
679 | { | 679 | { |
680 | struct tps80031_platform_data *pdata; | 680 | struct tps80031_platform_data *pdata; |
681 | struct tps80031_regulator_platform_data *tps_pdata; | 681 | struct tps80031_regulator_platform_data *tps_pdata; |
diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index eac854038c28..66e62a2cb244 100644 --- a/drivers/regulator/twl-regulator.c +++ b/drivers/regulator/twl-regulator.c | |||
@@ -1116,7 +1116,7 @@ static const struct of_device_id twl_of_match[] __devinitconst = { | |||
1116 | }; | 1116 | }; |
1117 | MODULE_DEVICE_TABLE(of, twl_of_match); | 1117 | MODULE_DEVICE_TABLE(of, twl_of_match); |
1118 | 1118 | ||
1119 | static int __devinit twlreg_probe(struct platform_device *pdev) | 1119 | static int twlreg_probe(struct platform_device *pdev) |
1120 | { | 1120 | { |
1121 | int i, id; | 1121 | int i, id; |
1122 | struct twlreg_info *info; | 1122 | struct twlreg_info *info; |
diff --git a/drivers/regulator/virtual.c b/drivers/regulator/virtual.c index ec97b3e3fbbb..be0dd182eab9 100644 --- a/drivers/regulator/virtual.c +++ b/drivers/regulator/virtual.c | |||
@@ -285,7 +285,7 @@ static const struct attribute_group regulator_virtual_attr_group = { | |||
285 | .attrs = regulator_virtual_attributes, | 285 | .attrs = regulator_virtual_attributes, |
286 | }; | 286 | }; |
287 | 287 | ||
288 | static int __devinit regulator_virtual_probe(struct platform_device *pdev) | 288 | static int regulator_virtual_probe(struct platform_device *pdev) |
289 | { | 289 | { |
290 | char *reg_id = pdev->dev.platform_data; | 290 | char *reg_id = pdev->dev.platform_data; |
291 | struct virtual_consumer_data *drvdata; | 291 | struct virtual_consumer_data *drvdata; |
diff --git a/drivers/regulator/wm831x-dcdc.c b/drivers/regulator/wm831x-dcdc.c index 16d7ebd88016..54e9778f5080 100644 --- a/drivers/regulator/wm831x-dcdc.c +++ b/drivers/regulator/wm831x-dcdc.c | |||
@@ -387,7 +387,7 @@ static struct regulator_ops wm831x_buckv_ops = { | |||
387 | * Set up DVS control. We just log errors since we can still run | 387 | * Set up DVS control. We just log errors since we can still run |
388 | * (with reduced performance) if we fail. | 388 | * (with reduced performance) if we fail. |
389 | */ | 389 | */ |
390 | static __devinit void wm831x_buckv_dvs_init(struct wm831x_dcdc *dcdc, | 390 | static void wm831x_buckv_dvs_init(struct wm831x_dcdc *dcdc, |
391 | struct wm831x_buckv_pdata *pdata) | 391 | struct wm831x_buckv_pdata *pdata) |
392 | { | 392 | { |
393 | struct wm831x *wm831x = dcdc->wm831x; | 393 | struct wm831x *wm831x = dcdc->wm831x; |
@@ -448,7 +448,7 @@ static __devinit void wm831x_buckv_dvs_init(struct wm831x_dcdc *dcdc, | |||
448 | } | 448 | } |
449 | } | 449 | } |
450 | 450 | ||
451 | static __devinit int wm831x_buckv_probe(struct platform_device *pdev) | 451 | static int wm831x_buckv_probe(struct platform_device *pdev) |
452 | { | 452 | { |
453 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); | 453 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); |
454 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; | 454 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; |
@@ -623,7 +623,7 @@ static struct regulator_ops wm831x_buckp_ops = { | |||
623 | .set_suspend_mode = wm831x_dcdc_set_suspend_mode, | 623 | .set_suspend_mode = wm831x_dcdc_set_suspend_mode, |
624 | }; | 624 | }; |
625 | 625 | ||
626 | static __devinit int wm831x_buckp_probe(struct platform_device *pdev) | 626 | static int wm831x_buckp_probe(struct platform_device *pdev) |
627 | { | 627 | { |
628 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); | 628 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); |
629 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; | 629 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; |
@@ -771,7 +771,7 @@ static struct regulator_ops wm831x_boostp_ops = { | |||
771 | .disable = regulator_disable_regmap, | 771 | .disable = regulator_disable_regmap, |
772 | }; | 772 | }; |
773 | 773 | ||
774 | static __devinit int wm831x_boostp_probe(struct platform_device *pdev) | 774 | static int wm831x_boostp_probe(struct platform_device *pdev) |
775 | { | 775 | { |
776 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); | 776 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); |
777 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; | 777 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; |
@@ -883,7 +883,7 @@ static struct regulator_ops wm831x_epe_ops = { | |||
883 | .get_status = wm831x_dcdc_get_status, | 883 | .get_status = wm831x_dcdc_get_status, |
884 | }; | 884 | }; |
885 | 885 | ||
886 | static __devinit int wm831x_epe_probe(struct platform_device *pdev) | 886 | static int wm831x_epe_probe(struct platform_device *pdev) |
887 | { | 887 | { |
888 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); | 888 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); |
889 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; | 889 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; |
diff --git a/drivers/regulator/wm831x-isink.c b/drivers/regulator/wm831x-isink.c index 1f807a842db3..ac4bdffef2ea 100644 --- a/drivers/regulator/wm831x-isink.c +++ b/drivers/regulator/wm831x-isink.c | |||
@@ -148,7 +148,7 @@ static irqreturn_t wm831x_isink_irq(int irq, void *data) | |||
148 | } | 148 | } |
149 | 149 | ||
150 | 150 | ||
151 | static __devinit int wm831x_isink_probe(struct platform_device *pdev) | 151 | static int wm831x_isink_probe(struct platform_device *pdev) |
152 | { | 152 | { |
153 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); | 153 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); |
154 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; | 154 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; |
diff --git a/drivers/regulator/wm831x-ldo.c b/drivers/regulator/wm831x-ldo.c index 2df06008cf51..90f657fe24ae 100644 --- a/drivers/regulator/wm831x-ldo.c +++ b/drivers/regulator/wm831x-ldo.c | |||
@@ -247,7 +247,7 @@ static struct regulator_ops wm831x_gp_ldo_ops = { | |||
247 | .disable = regulator_disable_regmap, | 247 | .disable = regulator_disable_regmap, |
248 | }; | 248 | }; |
249 | 249 | ||
250 | static __devinit int wm831x_gp_ldo_probe(struct platform_device *pdev) | 250 | static int wm831x_gp_ldo_probe(struct platform_device *pdev) |
251 | { | 251 | { |
252 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); | 252 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); |
253 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; | 253 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; |
@@ -504,7 +504,7 @@ static struct regulator_ops wm831x_aldo_ops = { | |||
504 | .disable = regulator_disable_regmap, | 504 | .disable = regulator_disable_regmap, |
505 | }; | 505 | }; |
506 | 506 | ||
507 | static __devinit int wm831x_aldo_probe(struct platform_device *pdev) | 507 | static int wm831x_aldo_probe(struct platform_device *pdev) |
508 | { | 508 | { |
509 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); | 509 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); |
510 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; | 510 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; |
@@ -660,7 +660,7 @@ static struct regulator_ops wm831x_alive_ldo_ops = { | |||
660 | .disable = regulator_disable_regmap, | 660 | .disable = regulator_disable_regmap, |
661 | }; | 661 | }; |
662 | 662 | ||
663 | static __devinit int wm831x_alive_ldo_probe(struct platform_device *pdev) | 663 | static int wm831x_alive_ldo_probe(struct platform_device *pdev) |
664 | { | 664 | { |
665 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); | 665 | struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); |
666 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; | 666 | struct wm831x_pdata *pdata = wm831x->dev->platform_data; |
diff --git a/drivers/regulator/wm8400-regulator.c b/drivers/regulator/wm8400-regulator.c index 1bb155152aa8..c155ec3159b9 100644 --- a/drivers/regulator/wm8400-regulator.c +++ b/drivers/regulator/wm8400-regulator.c | |||
@@ -226,7 +226,7 @@ static struct regulator_desc regulators[] = { | |||
226 | }, | 226 | }, |
227 | }; | 227 | }; |
228 | 228 | ||
229 | static int __devinit wm8400_regulator_probe(struct platform_device *pdev) | 229 | static int wm8400_regulator_probe(struct platform_device *pdev) |
230 | { | 230 | { |
231 | struct wm8400 *wm8400 = container_of(pdev, struct wm8400, regulators[pdev->id]); | 231 | struct wm8400 *wm8400 = container_of(pdev, struct wm8400, regulators[pdev->id]); |
232 | struct regulator_config config = { }; | 232 | struct regulator_config config = { }; |
diff --git a/drivers/regulator/wm8994-regulator.c b/drivers/regulator/wm8994-regulator.c index 28b45481c7d4..ea0fdd57fbbe 100644 --- a/drivers/regulator/wm8994-regulator.c +++ b/drivers/regulator/wm8994-regulator.c | |||
@@ -99,7 +99,7 @@ static const struct regulator_desc wm8994_ldo_desc[] = { | |||
99 | }, | 99 | }, |
100 | }; | 100 | }; |
101 | 101 | ||
102 | static __devinit int wm8994_ldo_probe(struct platform_device *pdev) | 102 | static int wm8994_ldo_probe(struct platform_device *pdev) |
103 | { | 103 | { |
104 | struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent); | 104 | struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent); |
105 | struct wm8994_pdata *pdata = wm8994->dev->platform_data; | 105 | struct wm8994_pdata *pdata = wm8994->dev->platform_data; |