Skip to content

Commit 3d68dfe

Browse files
committed
Drivers: regulator: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Liam Girdwood <lrg@ti.com> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6c44512 commit 3d68dfe

7 files changed

Lines changed: 17 additions & 17 deletions

File tree

‎drivers/regulator/anatop-regulator.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static int anatop_regulator_remove(struct platform_device *pdev)
188188
return 0;
189189
}
190190

191-
static struct of_device_id __devinitdata of_anatop_regulator_match_tbl[] = {
191+
static struct of_device_id of_anatop_regulator_match_tbl[] = {
192192
{ .compatible = "fsl,anatop-regulator", },
193193
{ /* end */ }
194194
};

‎drivers/regulator/da9055-regulator.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ static struct da9055_regulator_info da9055_regulator_info[] = {
442442
* GPIO can control regulator state and/or select the regulator register
443443
* set A/B for voltage ramping.
444444
*/
445-
static __devinit int da9055_gpio_init(struct da9055_regulator *regulator,
446-
struct regulator_config *config,
447-
struct da9055_pdata *pdata, int id)
445+
static int da9055_gpio_init(struct da9055_regulator *regulator,
446+
struct regulator_config *config,
447+
struct da9055_pdata *pdata, int id)
448448
{
449449
struct da9055_regulator_info *info = regulator->info;
450450
int ret = 0;
@@ -533,7 +533,7 @@ static inline struct da9055_regulator_info *find_regulator_info(int id)
533533
return NULL;
534534
}
535535

536-
static int __devinit da9055_regulator_probe(struct platform_device *pdev)
536+
static int da9055_regulator_probe(struct platform_device *pdev)
537537
{
538538
struct regulator_config config = { };
539539
struct da9055_regulator *regulator;
@@ -605,7 +605,7 @@ static int __devinit da9055_regulator_probe(struct platform_device *pdev)
605605
return ret;
606606
}
607607

608-
static int __devexit da9055_regulator_remove(struct platform_device *pdev)
608+
static int da9055_regulator_remove(struct platform_device *pdev)
609609
{
610610
struct da9055_regulator *regulator = platform_get_drvdata(pdev);
611611

@@ -616,7 +616,7 @@ static int __devexit da9055_regulator_remove(struct platform_device *pdev)
616616

617617
static struct platform_driver da9055_regulator_driver = {
618618
.probe = da9055_regulator_probe,
619-
.remove = __devexit_p(da9055_regulator_remove),
619+
.remove = da9055_regulator_remove,
620620
.driver = {
621621
.name = "da9055-regulator",
622622
.owner = THIS_MODULE,

‎drivers/regulator/fixed.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static int reg_fixed_voltage_remove(struct platform_device *pdev)
246246
}
247247

248248
#if defined(CONFIG_OF)
249-
static const struct of_device_id fixed_of_match[] __devinitconst = {
249+
static const struct of_device_id fixed_of_match[] = {
250250
{ .compatible = "regulator-fixed", },
251251
{},
252252
};

‎drivers/regulator/gpio-regulator.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ static int gpio_regulator_remove(struct platform_device *pdev)
365365
}
366366

367367
#if defined(CONFIG_OF)
368-
static const struct of_device_id regulator_gpio_of_match[] __devinitconst = {
368+
static const struct of_device_id regulator_gpio_of_match[] = {
369369
{ .compatible = "regulator-gpio", },
370370
{},
371371
};

‎drivers/regulator/max8973-regulator.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ static struct regulator_ops max8973_dcdc_ops = {
248248
.get_mode = max8973_dcdc_get_mode,
249249
};
250250

251-
static int __devinit max8973_init_dcdc(struct max8973_chip *max,
252-
struct max8973_regulator_platform_data *pdata)
251+
static int max8973_init_dcdc(struct max8973_chip *max,
252+
struct max8973_regulator_platform_data *pdata)
253253
{
254254
int ret;
255255
uint8_t control1 = 0;
@@ -359,8 +359,8 @@ static const struct regmap_config max8973_regmap_config = {
359359
.cache_type = REGCACHE_RBTREE,
360360
};
361361

362-
static int __devinit max8973_probe(struct i2c_client *client,
363-
const struct i2c_device_id *id)
362+
static int max8973_probe(struct i2c_client *client,
363+
const struct i2c_device_id *id)
364364
{
365365
struct max8973_regulator_platform_data *pdata;
366366
struct regulator_config config = { };
@@ -463,7 +463,7 @@ static int __devinit max8973_probe(struct i2c_client *client,
463463
return 0;
464464
}
465465

466-
static int __devexit max8973_remove(struct i2c_client *client)
466+
static int max8973_remove(struct i2c_client *client)
467467
{
468468
struct max8973_chip *max = i2c_get_clientdata(client);
469469

@@ -484,7 +484,7 @@ static struct i2c_driver max8973_i2c_driver = {
484484
.owner = THIS_MODULE,
485485
},
486486
.probe = max8973_probe,
487-
.remove = __devexit_p(max8973_remove),
487+
.remove = max8973_remove,
488488
.id_table = max8973_id,
489489
};
490490

‎drivers/regulator/palmas-regulator.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ static int palmas_remove(struct platform_device *pdev)
806806
return 0;
807807
}
808808

809-
static struct of_device_id __devinitdata of_palmas_match_tbl[] = {
809+
static struct of_device_id of_palmas_match_tbl[] = {
810810
{ .compatible = "ti,palmas-pmic", },
811811
{ /* end */ }
812812
};

‎drivers/regulator/twl-regulator.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ static u8 twl_get_smps_mult(void)
10641064
#define TWLFIXED_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWLFIXED, label)
10651065
#define TWLSMPS_OF_MATCH(comp, label) TWL_OF_MATCH(comp, TWLSMPS, label)
10661066

1067-
static const struct of_device_id twl_of_match[] __devinitconst = {
1067+
static const struct of_device_id twl_of_match[] = {
10681068
TWL4030_OF_MATCH("ti,twl4030-vaux1", VAUX1),
10691069
TWL4030_OF_MATCH("ti,twl4030-vaux2", VAUX2_4030),
10701070
TWL4030_OF_MATCH("ti,twl5030-vaux2", VAUX2),

0 commit comments

Comments
 (0)