diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 18:03:15 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:14 -0500 |
| commit | 612b95cd7926d1a583e68f12e10b44b7ac80ca17 (patch) | |
| tree | e7418eedd95f09adf88675ef89e6abdc465a45df | |
| parent | f568f6ca811fe681ecfd11c4ce78b6aa488020c0 (diff) | |
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>
| -rw-r--r-- | drivers/mfd/max8997.c | 2 | ||||
| -rw-r--r-- | drivers/mfd/retu-mfd.c | 5 | ||||
| -rw-r--r-- | drivers/mfd/rtsx_pcr.c | 8 | ||||
| -rw-r--r-- | drivers/mfd/sta2x11-mfd.c | 8 | ||||
| -rw-r--r-- | drivers/mfd/stmpe.c | 15 | ||||
| -rw-r--r-- | drivers/mfd/ti_am335x_tscadc.c | 6 | ||||
| -rw-r--r-- | drivers/mfd/tps80031.c | 11 | ||||
| -rw-r--r-- | drivers/mfd/twl6040.c | 8 | ||||
| -rw-r--r-- | drivers/mfd/vexpress-sysreg.c | 2 |
9 files changed, 30 insertions, 35 deletions
diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c index abd5c80c7cf5..14714058f2d2 100644 --- a/drivers/mfd/max8997.c +++ b/drivers/mfd/max8997.c | |||
| @@ -50,7 +50,7 @@ static struct mfd_cell max8997_devs[] = { | |||
| 50 | }; | 50 | }; |
| 51 | 51 | ||
| 52 | #ifdef CONFIG_OF | 52 | #ifdef CONFIG_OF |
| 53 | static struct of_device_id __devinitdata max8997_pmic_dt_match[] = { | 53 | static struct of_device_id max8997_pmic_dt_match[] = { |
| 54 | { .compatible = "maxim,max8997-pmic", .data = TYPE_MAX8997 }, | 54 | { .compatible = "maxim,max8997-pmic", .data = TYPE_MAX8997 }, |
| 55 | {}, | 55 | {}, |
| 56 | }; | 56 | }; |
diff --git a/drivers/mfd/retu-mfd.c b/drivers/mfd/retu-mfd.c index 7ff4a37ab0c0..3ba048655bf3 100644 --- a/drivers/mfd/retu-mfd.c +++ b/drivers/mfd/retu-mfd.c | |||
| @@ -171,8 +171,7 @@ static struct regmap_config retu_config = { | |||
| 171 | .val_bits = 16, | 171 | .val_bits = 16, |
| 172 | }; | 172 | }; |
| 173 | 173 | ||
| 174 | static int __devinit retu_probe(struct i2c_client *i2c, | 174 | static int retu_probe(struct i2c_client *i2c, const struct i2c_device_id *id) |
| 175 | const struct i2c_device_id *id) | ||
| 176 | { | 175 | { |
| 177 | struct retu_dev *rdev; | 176 | struct retu_dev *rdev; |
| 178 | int ret; | 177 | int ret; |
| @@ -225,7 +224,7 @@ static int __devinit retu_probe(struct i2c_client *i2c, | |||
| 225 | return 0; | 224 | return 0; |
| 226 | } | 225 | } |
| 227 | 226 | ||
| 228 | static int __devexit retu_remove(struct i2c_client *i2c) | 227 | static int retu_remove(struct i2c_client *i2c) |
| 229 | { | 228 | { |
| 230 | struct retu_dev *rdev = i2c_get_clientdata(i2c); | 229 | struct retu_dev *rdev = i2c_get_clientdata(i2c); |
| 231 | 230 | ||
diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c index 3a44efa29203..7a7b0bda4618 100644 --- a/drivers/mfd/rtsx_pcr.c +++ b/drivers/mfd/rtsx_pcr.c | |||
| @@ -998,8 +998,8 @@ static int rtsx_pci_init_chip(struct rtsx_pcr *pcr) | |||
| 998 | return 0; | 998 | return 0; |
| 999 | } | 999 | } |
| 1000 | 1000 | ||
| 1001 | static int __devinit rtsx_pci_probe(struct pci_dev *pcidev, | 1001 | static int rtsx_pci_probe(struct pci_dev *pcidev, |
| 1002 | const struct pci_device_id *id) | 1002 | const struct pci_device_id *id) |
| 1003 | { | 1003 | { |
| 1004 | struct rtsx_pcr *pcr; | 1004 | struct rtsx_pcr *pcr; |
| 1005 | struct pcr_handle *handle; | 1005 | struct pcr_handle *handle; |
| @@ -1123,7 +1123,7 @@ disable: | |||
| 1123 | return ret; | 1123 | return ret; |
| 1124 | } | 1124 | } |
| 1125 | 1125 | ||
| 1126 | static void __devexit rtsx_pci_remove(struct pci_dev *pcidev) | 1126 | static void rtsx_pci_remove(struct pci_dev *pcidev) |
| 1127 | { | 1127 | { |
| 1128 | struct pcr_handle *handle = pci_get_drvdata(pcidev); | 1128 | struct pcr_handle *handle = pci_get_drvdata(pcidev); |
| 1129 | struct rtsx_pcr *pcr = handle->pcr; | 1129 | struct rtsx_pcr *pcr = handle->pcr; |
| @@ -1241,7 +1241,7 @@ static struct pci_driver rtsx_pci_driver = { | |||
| 1241 | .name = DRV_NAME_RTSX_PCI, | 1241 | .name = DRV_NAME_RTSX_PCI, |
| 1242 | .id_table = rtsx_pci_ids, | 1242 | .id_table = rtsx_pci_ids, |
| 1243 | .probe = rtsx_pci_probe, | 1243 | .probe = rtsx_pci_probe, |
| 1244 | .remove = __devexit_p(rtsx_pci_remove), | 1244 | .remove = rtsx_pci_remove, |
| 1245 | .suspend = rtsx_pci_suspend, | 1245 | .suspend = rtsx_pci_suspend, |
| 1246 | .resume = rtsx_pci_resume, | 1246 | .resume = rtsx_pci_resume, |
| 1247 | }; | 1247 | }; |
diff --git a/drivers/mfd/sta2x11-mfd.c b/drivers/mfd/sta2x11-mfd.c index 1225dcbcfcfc..9bd33169a111 100644 --- a/drivers/mfd/sta2x11-mfd.c +++ b/drivers/mfd/sta2x11-mfd.c | |||
| @@ -510,19 +510,19 @@ enum mfd1_bar1_cells { | |||
| 510 | STA2X11_APB_SOC_REGS = 0, | 510 | STA2X11_APB_SOC_REGS = 0, |
| 511 | }; | 511 | }; |
| 512 | 512 | ||
| 513 | static const __devinitconst struct resource vic_resources[] = { | 513 | static const struct resource vic_resources[] = { |
| 514 | CELL_4K(STA2X11_MFD_VIC_NAME, STA2X11_VIC), | 514 | CELL_4K(STA2X11_MFD_VIC_NAME, STA2X11_VIC), |
| 515 | }; | 515 | }; |
| 516 | 516 | ||
| 517 | static const __devinitconst struct resource apb_soc_regs_resources[] = { | 517 | static const struct resource apb_soc_regs_resources[] = { |
| 518 | CELL_4K(STA2X11_MFD_APB_SOC_REGS_NAME, STA2X11_APB_SOC_REGS), | 518 | CELL_4K(STA2X11_MFD_APB_SOC_REGS_NAME, STA2X11_APB_SOC_REGS), |
| 519 | }; | 519 | }; |
| 520 | 520 | ||
| 521 | static __devinitdata struct mfd_cell sta2x11_mfd1_bar0[] = { | 521 | static struct mfd_cell sta2x11_mfd1_bar0[] = { |
| 522 | DEV(STA2X11_MFD_VIC_NAME, vic_resources), | 522 | DEV(STA2X11_MFD_VIC_NAME, vic_resources), |
| 523 | }; | 523 | }; |
| 524 | 524 | ||
| 525 | static __devinitdata struct mfd_cell sta2x11_mfd1_bar1[] = { | 525 | static struct mfd_cell sta2x11_mfd1_bar1[] = { |
| 526 | DEV(STA2X11_MFD_APB_SOC_REGS_NAME, apb_soc_regs_resources), | 526 | DEV(STA2X11_MFD_APB_SOC_REGS_NAME, apb_soc_regs_resources), |
| 527 | }; | 527 | }; |
| 528 | 528 | ||
diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c index 5e8e6927cfcd..4b11202061be 100644 --- a/drivers/mfd/stmpe.c +++ b/drivers/mfd/stmpe.c | |||
| @@ -892,8 +892,7 @@ static struct irq_domain_ops stmpe_irq_ops = { | |||
| 892 | .xlate = irq_domain_xlate_twocell, | 892 | .xlate = irq_domain_xlate_twocell, |
| 893 | }; | 893 | }; |
| 894 | 894 | ||
| 895 | static int __devinit stmpe_irq_init(struct stmpe *stmpe, | 895 | static int stmpe_irq_init(struct stmpe *stmpe, struct device_node *np) |
| 896 | struct device_node *np) | ||
| 897 | { | 896 | { |
| 898 | int base = 0; | 897 | int base = 0; |
| 899 | int num_irqs = stmpe->variant->num_irqs; | 898 | int num_irqs = stmpe->variant->num_irqs; |
| @@ -911,7 +910,7 @@ static int __devinit stmpe_irq_init(struct stmpe *stmpe, | |||
| 911 | return 0; | 910 | return 0; |
| 912 | } | 911 | } |
| 913 | 912 | ||
| 914 | static int __devinit stmpe_chip_init(struct stmpe *stmpe) | 913 | static int stmpe_chip_init(struct stmpe *stmpe) |
| 915 | { | 914 | { |
| 916 | unsigned int irq_trigger = stmpe->pdata->irq_trigger; | 915 | unsigned int irq_trigger = stmpe->pdata->irq_trigger; |
| 917 | int autosleep_timeout = stmpe->pdata->autosleep_timeout; | 916 | int autosleep_timeout = stmpe->pdata->autosleep_timeout; |
| @@ -970,14 +969,13 @@ static int __devinit stmpe_chip_init(struct stmpe *stmpe) | |||
| 970 | return stmpe_reg_write(stmpe, stmpe->regs[STMPE_IDX_ICR_LSB], icr); | 969 | return stmpe_reg_write(stmpe, stmpe->regs[STMPE_IDX_ICR_LSB], icr); |
| 971 | } | 970 | } |
| 972 | 971 | ||
| 973 | static int __devinit stmpe_add_device(struct stmpe *stmpe, | 972 | static int stmpe_add_device(struct stmpe *stmpe, struct mfd_cell *cell) |
| 974 | struct mfd_cell *cell) | ||
| 975 | { | 973 | { |
| 976 | return mfd_add_devices(stmpe->dev, stmpe->pdata->id, cell, 1, | 974 | return mfd_add_devices(stmpe->dev, stmpe->pdata->id, cell, 1, |
| 977 | NULL, stmpe->irq_base, stmpe->domain); | 975 | NULL, stmpe->irq_base, stmpe->domain); |
| 978 | } | 976 | } |
| 979 | 977 | ||
| 980 | static int __devinit stmpe_devices_init(struct stmpe *stmpe) | 978 | static int stmpe_devices_init(struct stmpe *stmpe) |
| 981 | { | 979 | { |
| 982 | struct stmpe_variant_info *variant = stmpe->variant; | 980 | struct stmpe_variant_info *variant = stmpe->variant; |
| 983 | unsigned int platform_blocks = stmpe->pdata->blocks; | 981 | unsigned int platform_blocks = stmpe->pdata->blocks; |
| @@ -1013,8 +1011,7 @@ static int __devinit stmpe_devices_init(struct stmpe *stmpe) | |||
| 1013 | return ret; | 1011 | return ret; |
| 1014 | } | 1012 | } |
| 1015 | 1013 | ||
| 1016 | void __devinit stmpe_of_probe(struct stmpe_platform_data *pdata, | 1014 | void stmpe_of_probe(struct stmpe_platform_data *pdata, struct device_node *np) |
| 1017 | struct device_node *np) | ||
| 1018 | { | 1015 | { |
| 1019 | struct device_node *child; | 1016 | struct device_node *child; |
| 1020 | 1017 | ||
| @@ -1044,7 +1041,7 @@ void __devinit stmpe_of_probe(struct stmpe_platform_data *pdata, | |||
| 1044 | } | 1041 | } |
| 1045 | 1042 | ||
| 1046 | /* Called from client specific probe routines */ | 1043 | /* 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) |
| 1048 | { | 1045 | { |
| 1049 | struct stmpe_platform_data *pdata = dev_get_platdata(ci->dev); | 1046 | struct stmpe_platform_data *pdata = dev_get_platdata(ci->dev); |
| 1050 | struct device_node *np = ci->dev->of_node; | 1047 | struct device_node *np = ci->dev->of_node; |
diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c index 8ca3bf023fb2..e9f3fb510b44 100644 --- a/drivers/mfd/ti_am335x_tscadc.c +++ b/drivers/mfd/ti_am335x_tscadc.c | |||
| @@ -58,7 +58,7 @@ static void tscadc_idle_config(struct ti_tscadc_dev *config) | |||
| 58 | tscadc_writel(config, REG_IDLECONFIG, idleconfig); | 58 | tscadc_writel(config, REG_IDLECONFIG, idleconfig); |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | static int __devinit ti_tscadc_probe(struct platform_device *pdev) | 61 | static int ti_tscadc_probe(struct platform_device *pdev) |
| 62 | { | 62 | { |
| 63 | struct ti_tscadc_dev *tscadc; | 63 | struct ti_tscadc_dev *tscadc; |
| 64 | struct resource *res; | 64 | struct resource *res; |
| @@ -202,7 +202,7 @@ ret: | |||
| 202 | return err; | 202 | return err; |
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | static int __devexit ti_tscadc_remove(struct platform_device *pdev) | 205 | static int ti_tscadc_remove(struct platform_device *pdev) |
| 206 | { | 206 | { |
| 207 | struct ti_tscadc_dev *tscadc = platform_get_drvdata(pdev); | 207 | struct ti_tscadc_dev *tscadc = platform_get_drvdata(pdev); |
| 208 | 208 | ||
| @@ -263,7 +263,7 @@ static struct platform_driver ti_tscadc_driver = { | |||
| 263 | .pm = TSCADC_PM_OPS, | 263 | .pm = TSCADC_PM_OPS, |
| 264 | }, | 264 | }, |
| 265 | .probe = ti_tscadc_probe, | 265 | .probe = ti_tscadc_probe, |
| 266 | .remove = __devexit_p(ti_tscadc_remove), | 266 | .remove = ti_tscadc_remove, |
| 267 | 267 | ||
| 268 | }; | 268 | }; |
| 269 | 269 | ||
diff --git a/drivers/mfd/tps80031.c b/drivers/mfd/tps80031.c index 10b51f7dfff3..c90a2c450f51 100644 --- a/drivers/mfd/tps80031.c +++ b/drivers/mfd/tps80031.c | |||
| @@ -269,8 +269,7 @@ static int tps80031_init_ext_control(struct tps80031 *tps80031, | |||
| 269 | return ret; | 269 | return ret; |
| 270 | } | 270 | } |
| 271 | 271 | ||
| 272 | static int __devinit tps80031_irq_init(struct tps80031 *tps80031, int irq, | 272 | static int tps80031_irq_init(struct tps80031 *tps80031, int irq, int irq_base) |
| 273 | int irq_base) | ||
| 274 | { | 273 | { |
| 275 | struct device *dev = tps80031->dev; | 274 | struct device *dev = tps80031->dev; |
| 276 | int i, ret; | 275 | int i, ret; |
| @@ -416,8 +415,8 @@ static const struct regmap_config tps80031_regmap_configs[] = { | |||
| 416 | }, | 415 | }, |
| 417 | }; | 416 | }; |
| 418 | 417 | ||
| 419 | static int __devinit tps80031_probe(struct i2c_client *client, | 418 | static int tps80031_probe(struct i2c_client *client, |
| 420 | const struct i2c_device_id *id) | 419 | const struct i2c_device_id *id) |
| 421 | { | 420 | { |
| 422 | struct tps80031_platform_data *pdata = client->dev.platform_data; | 421 | struct tps80031_platform_data *pdata = client->dev.platform_data; |
| 423 | struct tps80031 *tps80031; | 422 | struct tps80031 *tps80031; |
| @@ -519,7 +518,7 @@ fail_client_reg: | |||
| 519 | return ret; | 518 | return ret; |
| 520 | } | 519 | } |
| 521 | 520 | ||
| 522 | static int __devexit tps80031_remove(struct i2c_client *client) | 521 | static int tps80031_remove(struct i2c_client *client) |
| 523 | { | 522 | { |
| 524 | struct tps80031 *tps80031 = i2c_get_clientdata(client); | 523 | struct tps80031 *tps80031 = i2c_get_clientdata(client); |
| 525 | int i; | 524 | int i; |
| @@ -553,7 +552,7 @@ static struct i2c_driver tps80031_driver = { | |||
| 553 | .owner = THIS_MODULE, | 552 | .owner = THIS_MODULE, |
| 554 | }, | 553 | }, |
| 555 | .probe = tps80031_probe, | 554 | .probe = tps80031_probe, |
| 556 | .remove = __devexit_p(tps80031_remove), | 555 | .remove = tps80031_remove, |
| 557 | .id_table = tps80031_id_table, | 556 | .id_table = tps80031_id_table, |
| 558 | }; | 557 | }; |
| 559 | 558 | ||
diff --git a/drivers/mfd/twl6040.c b/drivers/mfd/twl6040.c index 583be76e36a8..f361bf38a0aa 100644 --- a/drivers/mfd/twl6040.c +++ b/drivers/mfd/twl6040.c | |||
| @@ -517,8 +517,8 @@ static struct regmap_irq_chip twl6040_irq_chip = { | |||
| 517 | .mask_base = TWL6040_REG_INTMR, | 517 | .mask_base = TWL6040_REG_INTMR, |
| 518 | }; | 518 | }; |
| 519 | 519 | ||
| 520 | static int __devinit twl6040_probe(struct i2c_client *client, | 520 | static int twl6040_probe(struct i2c_client *client, |
| 521 | const struct i2c_device_id *id) | 521 | const struct i2c_device_id *id) |
| 522 | { | 522 | { |
| 523 | struct twl6040_platform_data *pdata = client->dev.platform_data; | 523 | struct twl6040_platform_data *pdata = client->dev.platform_data; |
| 524 | struct device_node *node = client->dev.of_node; | 524 | struct device_node *node = client->dev.of_node; |
| @@ -699,7 +699,7 @@ err: | |||
| 699 | return ret; | 699 | return ret; |
| 700 | } | 700 | } |
| 701 | 701 | ||
| 702 | static int __devexit twl6040_remove(struct i2c_client *client) | 702 | static int twl6040_remove(struct i2c_client *client) |
| 703 | { | 703 | { |
| 704 | struct twl6040 *twl6040 = i2c_get_clientdata(client); | 704 | struct twl6040 *twl6040 = i2c_get_clientdata(client); |
| 705 | 705 | ||
| @@ -735,7 +735,7 @@ static struct i2c_driver twl6040_driver = { | |||
| 735 | .owner = THIS_MODULE, | 735 | .owner = THIS_MODULE, |
| 736 | }, | 736 | }, |
| 737 | .probe = twl6040_probe, | 737 | .probe = twl6040_probe, |
| 738 | .remove = __devexit_p(twl6040_remove), | 738 | .remove = twl6040_remove, |
| 739 | .id_table = twl6040_i2c_id, | 739 | .id_table = twl6040_i2c_id, |
| 740 | }; | 740 | }; |
| 741 | 741 | ||
diff --git a/drivers/mfd/vexpress-sysreg.c b/drivers/mfd/vexpress-sysreg.c index 733c06bd2d17..e5d8f63b252a 100644 --- a/drivers/mfd/vexpress-sysreg.c +++ b/drivers/mfd/vexpress-sysreg.c | |||
| @@ -414,7 +414,7 @@ static ssize_t vexpress_sysreg_sys_id_show(struct device *dev, | |||
| 414 | 414 | ||
| 415 | DEVICE_ATTR(sys_id, S_IRUGO, vexpress_sysreg_sys_id_show, NULL); | 415 | DEVICE_ATTR(sys_id, S_IRUGO, vexpress_sysreg_sys_id_show, NULL); |
| 416 | 416 | ||
| 417 | static int __devinit vexpress_sysreg_probe(struct platform_device *pdev) | 417 | static int vexpress_sysreg_probe(struct platform_device *pdev) |
| 418 | { | 418 | { |
| 419 | int err; | 419 | int err; |
| 420 | struct resource *res = platform_get_resource(pdev, | 420 | struct resource *res = platform_get_resource(pdev, |
