Skip to content

Commit 612b95c

Browse files
committed
Drivers: mfd: 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: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f568f6c commit 612b95c

9 files changed

Lines changed: 30 additions & 35 deletions

File tree

‎drivers/mfd/max8997.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static struct mfd_cell max8997_devs[] = {
5050
};
5151

5252
#ifdef CONFIG_OF
53-
static struct of_device_id __devinitdata max8997_pmic_dt_match[] = {
53+
static struct of_device_id max8997_pmic_dt_match[] = {
5454
{ .compatible = "maxim,max8997-pmic", .data = TYPE_MAX8997 },
5555
{},
5656
};

‎drivers/mfd/retu-mfd.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ static struct regmap_config retu_config = {
171171
.val_bits = 16,
172172
};
173173

174-
static int __devinit retu_probe(struct i2c_client *i2c,
175-
const struct i2c_device_id *id)
174+
static int retu_probe(struct i2c_client *i2c, const struct i2c_device_id *id)
176175
{
177176
struct retu_dev *rdev;
178177
int ret;
@@ -225,7 +224,7 @@ static int __devinit retu_probe(struct i2c_client *i2c,
225224
return 0;
226225
}
227226

228-
static int __devexit retu_remove(struct i2c_client *i2c)
227+
static int retu_remove(struct i2c_client *i2c)
229228
{
230229
struct retu_dev *rdev = i2c_get_clientdata(i2c);
231230

‎drivers/mfd/rtsx_pcr.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,8 @@ static int rtsx_pci_init_chip(struct rtsx_pcr *pcr)
998998
return 0;
999999
}
10001000

1001-
static int __devinit rtsx_pci_probe(struct pci_dev *pcidev,
1002-
const struct pci_device_id *id)
1001+
static int rtsx_pci_probe(struct pci_dev *pcidev,
1002+
const struct pci_device_id *id)
10031003
{
10041004
struct rtsx_pcr *pcr;
10051005
struct pcr_handle *handle;
@@ -1123,7 +1123,7 @@ static int __devinit rtsx_pci_probe(struct pci_dev *pcidev,
11231123
return ret;
11241124
}
11251125

1126-
static void __devexit rtsx_pci_remove(struct pci_dev *pcidev)
1126+
static void rtsx_pci_remove(struct pci_dev *pcidev)
11271127
{
11281128
struct pcr_handle *handle = pci_get_drvdata(pcidev);
11291129
struct rtsx_pcr *pcr = handle->pcr;
@@ -1241,7 +1241,7 @@ static struct pci_driver rtsx_pci_driver = {
12411241
.name = DRV_NAME_RTSX_PCI,
12421242
.id_table = rtsx_pci_ids,
12431243
.probe = rtsx_pci_probe,
1244-
.remove = __devexit_p(rtsx_pci_remove),
1244+
.remove = rtsx_pci_remove,
12451245
.suspend = rtsx_pci_suspend,
12461246
.resume = rtsx_pci_resume,
12471247
};

‎drivers/mfd/sta2x11-mfd.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,19 +510,19 @@ enum mfd1_bar1_cells {
510510
STA2X11_APB_SOC_REGS = 0,
511511
};
512512

513-
static const __devinitconst struct resource vic_resources[] = {
513+
static const struct resource vic_resources[] = {
514514
CELL_4K(STA2X11_MFD_VIC_NAME, STA2X11_VIC),
515515
};
516516

517-
static const __devinitconst struct resource apb_soc_regs_resources[] = {
517+
static const struct resource apb_soc_regs_resources[] = {
518518
CELL_4K(STA2X11_MFD_APB_SOC_REGS_NAME, STA2X11_APB_SOC_REGS),
519519
};
520520

521-
static __devinitdata struct mfd_cell sta2x11_mfd1_bar0[] = {
521+
static struct mfd_cell sta2x11_mfd1_bar0[] = {
522522
DEV(STA2X11_MFD_VIC_NAME, vic_resources),
523523
};
524524

525-
static __devinitdata struct mfd_cell sta2x11_mfd1_bar1[] = {
525+
static struct mfd_cell sta2x11_mfd1_bar1[] = {
526526
DEV(STA2X11_MFD_APB_SOC_REGS_NAME, apb_soc_regs_resources),
527527
};
528528

‎drivers/mfd/stmpe.c‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,7 @@ static struct irq_domain_ops stmpe_irq_ops = {
892892
.xlate = irq_domain_xlate_twocell,
893893
};
894894

895-
static int __devinit stmpe_irq_init(struct stmpe *stmpe,
896-
struct device_node *np)
895+
static int stmpe_irq_init(struct stmpe *stmpe, struct device_node *np)
897896
{
898897
int base = 0;
899898
int num_irqs = stmpe->variant->num_irqs;
@@ -911,7 +910,7 @@ static int __devinit stmpe_irq_init(struct stmpe *stmpe,
911910
return 0;
912911
}
913912

914-
static int __devinit stmpe_chip_init(struct stmpe *stmpe)
913+
static int stmpe_chip_init(struct stmpe *stmpe)
915914
{
916915
unsigned int irq_trigger = stmpe->pdata->irq_trigger;
917916
int autosleep_timeout = stmpe->pdata->autosleep_timeout;
@@ -970,14 +969,13 @@ static int __devinit stmpe_chip_init(struct stmpe *stmpe)
970969
return stmpe_reg_write(stmpe, stmpe->regs[STMPE_IDX_ICR_LSB], icr);
971970
}
972971

973-
static int __devinit stmpe_add_device(struct stmpe *stmpe,
974-
struct mfd_cell *cell)
972+
static int stmpe_add_device(struct stmpe *stmpe, struct mfd_cell *cell)
975973
{
976974
return mfd_add_devices(stmpe->dev, stmpe->pdata->id, cell, 1,
977975
NULL, stmpe->irq_base, stmpe->domain);
978976
}
979977

980-
static int __devinit stmpe_devices_init(struct stmpe *stmpe)
978+
static int stmpe_devices_init(struct stmpe *stmpe)
981979
{
982980
struct stmpe_variant_info *variant = stmpe->variant;
983981
unsigned int platform_blocks = stmpe->pdata->blocks;
@@ -1013,8 +1011,7 @@ static int __devinit stmpe_devices_init(struct stmpe *stmpe)
10131011
return ret;
10141012
}
10151013

1016-
void __devinit stmpe_of_probe(struct stmpe_platform_data *pdata,
1017-
struct device_node *np)
1014+
void stmpe_of_probe(struct stmpe_platform_data *pdata, struct device_node *np)
10181015
{
10191016
struct device_node *child;
10201017

@@ -1044,7 +1041,7 @@ void __devinit stmpe_of_probe(struct stmpe_platform_data *pdata,
10441041
}
10451042

10461043
/* Called from client specific probe routines */
1047-
int __devinit stmpe_probe(struct stmpe_client_info *ci, int partnum)
1044+
int stmpe_probe(struct stmpe_client_info *ci, int partnum)
10481045
{
10491046
struct stmpe_platform_data *pdata = dev_get_platdata(ci->dev);
10501047
struct device_node *np = ci->dev->of_node;

‎drivers/mfd/ti_am335x_tscadc.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static void tscadc_idle_config(struct ti_tscadc_dev *config)
5858
tscadc_writel(config, REG_IDLECONFIG, idleconfig);
5959
}
6060

61-
static int __devinit ti_tscadc_probe(struct platform_device *pdev)
61+
static int ti_tscadc_probe(struct platform_device *pdev)
6262
{
6363
struct ti_tscadc_dev *tscadc;
6464
struct resource *res;
@@ -202,7 +202,7 @@ static int __devinit ti_tscadc_probe(struct platform_device *pdev)
202202
return err;
203203
}
204204

205-
static int __devexit ti_tscadc_remove(struct platform_device *pdev)
205+
static int ti_tscadc_remove(struct platform_device *pdev)
206206
{
207207
struct ti_tscadc_dev *tscadc = platform_get_drvdata(pdev);
208208

@@ -263,7 +263,7 @@ static struct platform_driver ti_tscadc_driver = {
263263
.pm = TSCADC_PM_OPS,
264264
},
265265
.probe = ti_tscadc_probe,
266-
.remove = __devexit_p(ti_tscadc_remove),
266+
.remove = ti_tscadc_remove,
267267

268268
};
269269

‎drivers/mfd/tps80031.c‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@ static int tps80031_init_ext_control(struct tps80031 *tps80031,
269269
return ret;
270270
}
271271

272-
static int __devinit tps80031_irq_init(struct tps80031 *tps80031, int irq,
273-
int irq_base)
272+
static int tps80031_irq_init(struct tps80031 *tps80031, int irq, int irq_base)
274273
{
275274
struct device *dev = tps80031->dev;
276275
int i, ret;
@@ -416,8 +415,8 @@ static const struct regmap_config tps80031_regmap_configs[] = {
416415
},
417416
};
418417

419-
static int __devinit tps80031_probe(struct i2c_client *client,
420-
const struct i2c_device_id *id)
418+
static int tps80031_probe(struct i2c_client *client,
419+
const struct i2c_device_id *id)
421420
{
422421
struct tps80031_platform_data *pdata = client->dev.platform_data;
423422
struct tps80031 *tps80031;
@@ -519,7 +518,7 @@ static int __devinit tps80031_probe(struct i2c_client *client,
519518
return ret;
520519
}
521520

522-
static int __devexit tps80031_remove(struct i2c_client *client)
521+
static int tps80031_remove(struct i2c_client *client)
523522
{
524523
struct tps80031 *tps80031 = i2c_get_clientdata(client);
525524
int i;
@@ -553,7 +552,7 @@ static struct i2c_driver tps80031_driver = {
553552
.owner = THIS_MODULE,
554553
},
555554
.probe = tps80031_probe,
556-
.remove = __devexit_p(tps80031_remove),
555+
.remove = tps80031_remove,
557556
.id_table = tps80031_id_table,
558557
};
559558

‎drivers/mfd/twl6040.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,8 @@ static struct regmap_irq_chip twl6040_irq_chip = {
517517
.mask_base = TWL6040_REG_INTMR,
518518
};
519519

520-
static int __devinit twl6040_probe(struct i2c_client *client,
521-
const struct i2c_device_id *id)
520+
static int twl6040_probe(struct i2c_client *client,
521+
const struct i2c_device_id *id)
522522
{
523523
struct twl6040_platform_data *pdata = client->dev.platform_data;
524524
struct device_node *node = client->dev.of_node;
@@ -699,7 +699,7 @@ static int __devinit twl6040_probe(struct i2c_client *client,
699699
return ret;
700700
}
701701

702-
static int __devexit twl6040_remove(struct i2c_client *client)
702+
static int twl6040_remove(struct i2c_client *client)
703703
{
704704
struct twl6040 *twl6040 = i2c_get_clientdata(client);
705705

@@ -735,7 +735,7 @@ static struct i2c_driver twl6040_driver = {
735735
.owner = THIS_MODULE,
736736
},
737737
.probe = twl6040_probe,
738-
.remove = __devexit_p(twl6040_remove),
738+
.remove = twl6040_remove,
739739
.id_table = twl6040_i2c_id,
740740
};
741741

‎drivers/mfd/vexpress-sysreg.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static ssize_t vexpress_sysreg_sys_id_show(struct device *dev,
414414

415415
DEVICE_ATTR(sys_id, S_IRUGO, vexpress_sysreg_sys_id_show, NULL);
416416

417-
static int __devinit vexpress_sysreg_probe(struct platform_device *pdev)
417+
static int vexpress_sysreg_probe(struct platform_device *pdev)
418418
{
419419
int err;
420420
struct resource *res = platform_get_resource(pdev,

0 commit comments

Comments
 (0)