aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:19:58 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:03 -0500
commit0ec24914675c48213378da550db494bf154f0f6c (patch)
tree901633b49aad470693a8ad2a0c490c6888df3ca6
parentd8929942806270801023c90d78885e5347be718f (diff)
Drivers: ata: 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, 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: Jeff Garzik <jgarzik@pobox.com> Cc: Viresh Kumar <viresh.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/ata/ahci_platform.c2
-rw-r--r--drivers/ata/ata_piix.c17
-rw-r--r--drivers/ata/pata_arasan_cf.c6
-rw-r--r--drivers/ata/pata_at91.c6
-rw-r--r--drivers/ata/pata_bf54x.c6
-rw-r--r--drivers/ata/pata_cs5520.c2
-rw-r--r--drivers/ata/pata_ep93xx.c6
-rw-r--r--drivers/ata/pata_icside.c21
-rw-r--r--drivers/ata/pata_imx.c6
-rw-r--r--drivers/ata/pata_ixp4xx_cf.c2
-rw-r--r--drivers/ata/pata_macio.c33
-rw-r--r--drivers/ata/pata_mpc52xx.c10
-rw-r--r--drivers/ata/pata_octeon_cf.c2
-rw-r--r--drivers/ata/pata_of_platform.c2
-rw-r--r--drivers/ata/pata_palmld.c6
-rw-r--r--drivers/ata/pata_pdc2027x.c3
-rw-r--r--drivers/ata/pata_platform.c11
-rw-r--r--drivers/ata/pata_pxa.c6
-rw-r--r--drivers/ata/pata_rb532_cf.c6
-rw-r--r--drivers/ata/pata_rdc.c3
-rw-r--r--drivers/ata/pata_sch.c3
-rw-r--r--drivers/ata/pata_sil680.c3
-rw-r--r--drivers/ata/sata_highbank.c2
-rw-r--r--drivers/ata/sata_mv.c8
-rw-r--r--drivers/ata/sata_vsc.c7
25 files changed, 85 insertions, 94 deletions
diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c
index 1cc467bdb63d..7a8a2841fe64 100644
--- a/drivers/ata/ahci_platform.c
+++ b/drivers/ata/ahci_platform.c
@@ -86,7 +86,7 @@ static struct scsi_host_template ahci_platform_sht = {
86 AHCI_SHT("ahci_platform"), 86 AHCI_SHT("ahci_platform"),
87}; 87};
88 88
89static int __devinit ahci_probe(struct platform_device *pdev) 89static int ahci_probe(struct platform_device *pdev)
90{ 90{
91 struct device *dev = &pdev->dev; 91 struct device *dev = &pdev->dev;
92 struct ahci_platform_data *pdata = dev_get_platdata(dev); 92 struct ahci_platform_data *pdata = dev_get_platdata(dev);
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index acffcf0b3ad3..174eca609b42 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -1270,7 +1270,7 @@ static int piix_disable_ahci(struct pci_dev *pdev)
1270 * they are found return an error code so we can turn off DMA 1270 * they are found return an error code so we can turn off DMA
1271 */ 1271 */
1272 1272
1273static int __devinit piix_check_450nx_errata(struct pci_dev *ata_dev) 1273static int piix_check_450nx_errata(struct pci_dev *ata_dev)
1274{ 1274{
1275 struct pci_dev *pdev = NULL; 1275 struct pci_dev *pdev = NULL;
1276 u16 cfg; 1276 u16 cfg;
@@ -1296,8 +1296,8 @@ static int __devinit piix_check_450nx_errata(struct pci_dev *ata_dev)
1296 return no_piix_dma; 1296 return no_piix_dma;
1297} 1297}
1298 1298
1299static void __devinit piix_init_pcs(struct ata_host *host, 1299static void piix_init_pcs(struct ata_host *host,
1300 const struct piix_map_db *map_db) 1300 const struct piix_map_db *map_db)
1301{ 1301{
1302 struct pci_dev *pdev = to_pci_dev(host->dev); 1302 struct pci_dev *pdev = to_pci_dev(host->dev);
1303 u16 pcs, new_pcs; 1303 u16 pcs, new_pcs;
@@ -1313,9 +1313,9 @@ static void __devinit piix_init_pcs(struct ata_host *host,
1313 } 1313 }
1314} 1314}
1315 1315
1316static const int *__devinit piix_init_sata_map(struct pci_dev *pdev, 1316static const int *piix_init_sata_map(struct pci_dev *pdev,
1317 struct ata_port_info *pinfo, 1317 struct ata_port_info *pinfo,
1318 const struct piix_map_db *map_db) 1318 const struct piix_map_db *map_db)
1319{ 1319{
1320 const int *map; 1320 const int *map;
1321 int i, invalid_map = 0; 1321 int i, invalid_map = 0;
@@ -1392,7 +1392,7 @@ static bool piix_no_sidpr(struct ata_host *host)
1392 return false; 1392 return false;
1393} 1393}
1394 1394
1395static int __devinit piix_init_sidpr(struct ata_host *host) 1395static int piix_init_sidpr(struct ata_host *host)
1396{ 1396{
1397 struct pci_dev *pdev = to_pci_dev(host->dev); 1397 struct pci_dev *pdev = to_pci_dev(host->dev);
1398 struct piix_host_priv *hpriv = host->private_data; 1398 struct piix_host_priv *hpriv = host->private_data;
@@ -1595,8 +1595,7 @@ static void piix_ignore_devices_quirk(struct ata_host *host)
1595 * Zero on success, or -ERRNO value. 1595 * Zero on success, or -ERRNO value.
1596 */ 1596 */
1597 1597
1598static int __devinit piix_init_one(struct pci_dev *pdev, 1598static int piix_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1599 const struct pci_device_id *ent)
1600{ 1599{
1601 struct device *dev = &pdev->dev; 1600 struct device *dev = &pdev->dev;
1602 struct ata_port_info port_info[2]; 1601 struct ata_port_info port_info[2];
diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c
index 9764e80f9320..405022d302c3 100644
--- a/drivers/ata/pata_arasan_cf.c
+++ b/drivers/ata/pata_arasan_cf.c
@@ -791,7 +791,7 @@ static struct ata_port_operations arasan_cf_ops = {
791 .set_dmamode = arasan_cf_set_dmamode, 791 .set_dmamode = arasan_cf_set_dmamode,
792}; 792};
793 793
794static int __devinit arasan_cf_probe(struct platform_device *pdev) 794static int arasan_cf_probe(struct platform_device *pdev)
795{ 795{
796 struct arasan_cf_dev *acdev; 796 struct arasan_cf_dev *acdev;
797 struct arasan_cf_pdata *pdata = dev_get_platdata(&pdev->dev); 797 struct arasan_cf_pdata *pdata = dev_get_platdata(&pdev->dev);
@@ -905,7 +905,7 @@ free_clk:
905 return ret; 905 return ret;
906} 906}
907 907
908static int __devexit arasan_cf_remove(struct platform_device *pdev) 908static int arasan_cf_remove(struct platform_device *pdev)
909{ 909{
910 struct ata_host *host = dev_get_drvdata(&pdev->dev); 910 struct ata_host *host = dev_get_drvdata(&pdev->dev);
911 struct arasan_cf_dev *acdev = host->ports[0]->private_data; 911 struct arasan_cf_dev *acdev = host->ports[0]->private_data;
@@ -955,7 +955,7 @@ MODULE_DEVICE_TABLE(of, arasan_cf_id_table);
955 955
956static struct platform_driver arasan_cf_driver = { 956static struct platform_driver arasan_cf_driver = {
957 .probe = arasan_cf_probe, 957 .probe = arasan_cf_probe,
958 .remove = __devexit_p(arasan_cf_remove), 958 .remove = arasan_cf_remove,
959 .driver = { 959 .driver = {
960 .name = DRIVER_NAME, 960 .name = DRIVER_NAME,
961 .owner = THIS_MODULE, 961 .owner = THIS_MODULE,
diff --git a/drivers/ata/pata_at91.c b/drivers/ata/pata_at91.c
index 2a96bb2c53ee..033f3f4c20ad 100644
--- a/drivers/ata/pata_at91.c
+++ b/drivers/ata/pata_at91.c
@@ -313,7 +313,7 @@ static struct ata_port_operations pata_at91_port_ops = {
313 .cable_detect = ata_cable_40wire, 313 .cable_detect = ata_cable_40wire,
314}; 314};
315 315
316static int __devinit pata_at91_probe(struct platform_device *pdev) 316static int pata_at91_probe(struct platform_device *pdev)
317{ 317{
318 struct at91_cf_data *board = pdev->dev.platform_data; 318 struct at91_cf_data *board = pdev->dev.platform_data;
319 struct device *dev = &pdev->dev; 319 struct device *dev = &pdev->dev;
@@ -420,7 +420,7 @@ err_put:
420 return ret; 420 return ret;
421} 421}
422 422
423static int __devexit pata_at91_remove(struct platform_device *pdev) 423static int pata_at91_remove(struct platform_device *pdev)
424{ 424{
425 struct ata_host *host = dev_get_drvdata(&pdev->dev); 425 struct ata_host *host = dev_get_drvdata(&pdev->dev);
426 struct at91_ide_info *info; 426 struct at91_ide_info *info;
@@ -441,7 +441,7 @@ static int __devexit pata_at91_remove(struct platform_device *pdev)
441 441
442static struct platform_driver pata_at91_driver = { 442static struct platform_driver pata_at91_driver = {
443 .probe = pata_at91_probe, 443 .probe = pata_at91_probe,
444 .remove = __devexit_p(pata_at91_remove), 444 .remove = pata_at91_remove,
445 .driver = { 445 .driver = {
446 .name = DRV_NAME, 446 .name = DRV_NAME,
447 .owner = THIS_MODULE, 447 .owner = THIS_MODULE,
diff --git a/drivers/ata/pata_bf54x.c b/drivers/ata/pata_bf54x.c
index 1e65842e2ca7..8d43510c6bec 100644
--- a/drivers/ata/pata_bf54x.c
+++ b/drivers/ata/pata_bf54x.c
@@ -1538,7 +1538,7 @@ static unsigned short atapi_io_port[] = {
1538 * - IRQ (IORESOURCE_IRQ) 1538 * - IRQ (IORESOURCE_IRQ)
1539 * 1539 *
1540 */ 1540 */
1541static int __devinit bfin_atapi_probe(struct platform_device *pdev) 1541static int bfin_atapi_probe(struct platform_device *pdev)
1542{ 1542{
1543 int board_idx = 0; 1543 int board_idx = 0;
1544 struct resource *res; 1544 struct resource *res;
@@ -1608,7 +1608,7 @@ static int __devinit bfin_atapi_probe(struct platform_device *pdev)
1608 * A bfin atapi device has been unplugged. Perform the needed 1608 * A bfin atapi device has been unplugged. Perform the needed
1609 * cleanup. Also called on module unload for any active devices. 1609 * cleanup. Also called on module unload for any active devices.
1610 */ 1610 */
1611static int __devexit bfin_atapi_remove(struct platform_device *pdev) 1611static int bfin_atapi_remove(struct platform_device *pdev)
1612{ 1612{
1613 struct device *dev = &pdev->dev; 1613 struct device *dev = &pdev->dev;
1614 struct ata_host *host = dev_get_drvdata(dev); 1614 struct ata_host *host = dev_get_drvdata(dev);
@@ -1654,7 +1654,7 @@ static int bfin_atapi_resume(struct platform_device *pdev)
1654 1654
1655static struct platform_driver bfin_atapi_driver = { 1655static struct platform_driver bfin_atapi_driver = {
1656 .probe = bfin_atapi_probe, 1656 .probe = bfin_atapi_probe,
1657 .remove = __devexit_p(bfin_atapi_remove), 1657 .remove = bfin_atapi_remove,
1658 .suspend = bfin_atapi_suspend, 1658 .suspend = bfin_atapi_suspend,
1659 .resume = bfin_atapi_resume, 1659 .resume = bfin_atapi_resume,
1660 .driver = { 1660 .driver = {
diff --git a/drivers/ata/pata_cs5520.c b/drivers/ata/pata_cs5520.c
index de74d804f031..bfcf377e8f77 100644
--- a/drivers/ata/pata_cs5520.c
+++ b/drivers/ata/pata_cs5520.c
@@ -115,7 +115,7 @@ static struct ata_port_operations cs5520_port_ops = {
115 .set_piomode = cs5520_set_piomode, 115 .set_piomode = cs5520_set_piomode,
116}; 116};
117 117
118static int __devinit cs5520_init_one(struct pci_dev *pdev, const struct pci_device_id *id) 118static int cs5520_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
119{ 119{
120 static const unsigned int cmd_port[] = { 0x1F0, 0x170 }; 120 static const unsigned int cmd_port[] = { 0x1F0, 0x170 };
121 static const unsigned int ctl_port[] = { 0x3F6, 0x376 }; 121 static const unsigned int ctl_port[] = { 0x3F6, 0x376 };
diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c
index 3982cef91f3c..556222f04731 100644
--- a/drivers/ata/pata_ep93xx.c
+++ b/drivers/ata/pata_ep93xx.c
@@ -910,7 +910,7 @@ static struct ata_port_operations ep93xx_pata_port_ops = {
910 .port_start = ep93xx_pata_port_start, 910 .port_start = ep93xx_pata_port_start,
911}; 911};
912 912
913static int __devinit ep93xx_pata_probe(struct platform_device *pdev) 913static int ep93xx_pata_probe(struct platform_device *pdev)
914{ 914{
915 struct ep93xx_pata_data *drv_data; 915 struct ep93xx_pata_data *drv_data;
916 struct ata_host *host; 916 struct ata_host *host;
@@ -1011,7 +1011,7 @@ err_rel_gpio:
1011 return err; 1011 return err;
1012} 1012}
1013 1013
1014static int __devexit ep93xx_pata_remove(struct platform_device *pdev) 1014static int ep93xx_pata_remove(struct platform_device *pdev)
1015{ 1015{
1016 struct ata_host *host = platform_get_drvdata(pdev); 1016 struct ata_host *host = platform_get_drvdata(pdev);
1017 struct ep93xx_pata_data *drv_data = host->private_data; 1017 struct ep93xx_pata_data *drv_data = host->private_data;
@@ -1029,7 +1029,7 @@ static struct platform_driver ep93xx_pata_platform_driver = {
1029 .owner = THIS_MODULE, 1029 .owner = THIS_MODULE,
1030 }, 1030 },
1031 .probe = ep93xx_pata_probe, 1031 .probe = ep93xx_pata_probe,
1032 .remove = __devexit_p(ep93xx_pata_remove), 1032 .remove = ep93xx_pata_remove,
1033}; 1033};
1034 1034
1035module_platform_driver(ep93xx_pata_platform_driver); 1035module_platform_driver(ep93xx_pata_platform_driver);
diff --git a/drivers/ata/pata_icside.c b/drivers/ata/pata_icside.c
index 52e7e7b8c74f..d7c732042a4f 100644
--- a/drivers/ata/pata_icside.c
+++ b/drivers/ata/pata_icside.c
@@ -337,10 +337,9 @@ static struct ata_port_operations pata_icside_port_ops = {
337 .port_start = ATA_OP_NULL, /* don't need PRD table */ 337 .port_start = ATA_OP_NULL, /* don't need PRD table */
338}; 338};
339 339
340static void __devinit 340static void pata_icside_setup_ioaddr(struct ata_port *ap, void __iomem *base,
341pata_icside_setup_ioaddr(struct ata_port *ap, void __iomem *base, 341 struct pata_icside_info *info,
342 struct pata_icside_info *info, 342 const struct portinfo *port)
343 const struct portinfo *port)
344{ 343{
345 struct ata_ioports *ioaddr = &ap->ioaddr; 344 struct ata_ioports *ioaddr = &ap->ioaddr;
346 void __iomem *cmd = base + port->dataoffset; 345 void __iomem *cmd = base + port->dataoffset;
@@ -368,7 +367,7 @@ pata_icside_setup_ioaddr(struct ata_port *ap, void __iomem *base,
368 ata_port_desc(ap, "iocbase 0x%lx", info->raw_ioc_base); 367 ata_port_desc(ap, "iocbase 0x%lx", info->raw_ioc_base);
369} 368}
370 369
371static int __devinit pata_icside_register_v5(struct pata_icside_info *info) 370static int pata_icside_register_v5(struct pata_icside_info *info)
372{ 371{
373 struct pata_icside_state *state = info->state; 372 struct pata_icside_state *state = info->state;
374 void __iomem *base; 373 void __iomem *base;
@@ -391,7 +390,7 @@ static int __devinit pata_icside_register_v5(struct pata_icside_info *info)
391 return 0; 390 return 0;
392} 391}
393 392
394static int __devinit pata_icside_register_v6(struct pata_icside_info *info) 393static int pata_icside_register_v6(struct pata_icside_info *info)
395{ 394{
396 struct pata_icside_state *state = info->state; 395 struct pata_icside_state *state = info->state;
397 struct expansion_card *ec = info->ec; 396 struct expansion_card *ec = info->ec;
@@ -434,7 +433,7 @@ static int __devinit pata_icside_register_v6(struct pata_icside_info *info)
434 return icside_dma_init(info); 433 return icside_dma_init(info);
435} 434}
436 435
437static int __devinit pata_icside_add_ports(struct pata_icside_info *info) 436static int pata_icside_add_ports(struct pata_icside_info *info)
438{ 437{
439 struct expansion_card *ec = info->ec; 438 struct expansion_card *ec = info->ec;
440 struct ata_host *host; 439 struct ata_host *host;
@@ -474,8 +473,8 @@ static int __devinit pata_icside_add_ports(struct pata_icside_info *info)
474 &pata_icside_sht); 473 &pata_icside_sht);
475} 474}
476 475
477static int __devinit 476static int pata_icside_probe(struct expansion_card *ec,
478pata_icside_probe(struct expansion_card *ec, const struct ecard_id *id) 477 const struct ecard_id *id)
479{ 478{
480 struct pata_icside_state *state; 479 struct pata_icside_state *state;
481 struct pata_icside_info info; 480 struct pata_icside_info info;
@@ -575,7 +574,7 @@ static void pata_icside_shutdown(struct expansion_card *ec)
575 } 574 }
576} 575}
577 576
578static void __devexit pata_icside_remove(struct expansion_card *ec) 577static void pata_icside_remove(struct expansion_card *ec)
579{ 578{
580 struct ata_host *host = ecard_get_drvdata(ec); 579 struct ata_host *host = ecard_get_drvdata(ec);
581 struct pata_icside_state *state = host->private_data; 580 struct pata_icside_state *state = host->private_data;
@@ -602,7 +601,7 @@ static const struct ecard_id pata_icside_ids[] = {
602 601
603static struct ecard_driver pata_icside_driver = { 602static struct ecard_driver pata_icside_driver = {
604 .probe = pata_icside_probe, 603 .probe = pata_icside_probe,
605 .remove = __devexit_p(pata_icside_remove), 604 .remove = pata_icside_remove,
606 .shutdown = pata_icside_shutdown, 605 .shutdown = pata_icside_shutdown,
607 .id_table = pata_icside_ids, 606 .id_table = pata_icside_ids,
608 .drv = { 607 .drv = {
diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c
index 7d40b526ef11..40849445a9dc 100644
--- a/drivers/ata/pata_imx.c
+++ b/drivers/ata/pata_imx.c
@@ -91,7 +91,7 @@ static void pata_imx_setup_port(struct ata_ioports *ioaddr)
91 ioaddr->command_addr = ioaddr->cmd_addr + (ATA_REG_CMD << 2); 91 ioaddr->command_addr = ioaddr->cmd_addr + (ATA_REG_CMD << 2);
92} 92}
93 93
94static int __devinit pata_imx_probe(struct platform_device *pdev) 94static int pata_imx_probe(struct platform_device *pdev)
95{ 95{
96 struct ata_host *host; 96 struct ata_host *host;
97 struct ata_port *ap; 97 struct ata_port *ap;
@@ -167,7 +167,7 @@ free_priv:
167 return -ENOMEM; 167 return -ENOMEM;
168} 168}
169 169
170static int __devexit pata_imx_remove(struct platform_device *pdev) 170static int pata_imx_remove(struct platform_device *pdev)
171{ 171{
172 struct ata_host *host = dev_get_drvdata(&pdev->dev); 172 struct ata_host *host = dev_get_drvdata(&pdev->dev);
173 struct pata_imx_priv *priv = host->private_data; 173 struct pata_imx_priv *priv = host->private_data;
@@ -225,7 +225,7 @@ static const struct dev_pm_ops pata_imx_pm_ops = {
225 225
226static struct platform_driver pata_imx_driver = { 226static struct platform_driver pata_imx_driver = {
227 .probe = pata_imx_probe, 227 .probe = pata_imx_probe,
228 .remove = __devexit_p(pata_imx_remove), 228 .remove = pata_imx_remove,
229 .driver = { 229 .driver = {
230 .name = DRV_NAME, 230 .name = DRV_NAME,
231 .owner = THIS_MODULE, 231 .owner = THIS_MODULE,
diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c
index 0566e67b5e12..dcc6b243e525 100644
--- a/drivers/ata/pata_ixp4xx_cf.c
+++ b/drivers/ata/pata_ixp4xx_cf.c
@@ -137,7 +137,7 @@ static void ixp4xx_setup_port(struct ata_port *ap,
137 ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", raw_cmd, raw_ctl); 137 ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", raw_cmd, raw_ctl);
138} 138}
139 139
140static __devinit int ixp4xx_pata_probe(struct platform_device *pdev) 140static int ixp4xx_pata_probe(struct platform_device *pdev)
141{ 141{
142 unsigned int irq; 142 unsigned int irq;
143 struct resource *cs0, *cs1; 143 struct resource *cs0, *cs1;
diff --git a/drivers/ata/pata_macio.c b/drivers/ata/pata_macio.c
index b057e3fa44bc..e5725edcf515 100644
--- a/drivers/ata/pata_macio.c
+++ b/drivers/ata/pata_macio.c
@@ -935,7 +935,7 @@ static struct ata_port_operations pata_macio_ops = {
935 .sff_irq_clear = pata_macio_irq_clear, 935 .sff_irq_clear = pata_macio_irq_clear,
936}; 936};
937 937
938static void __devinit pata_macio_invariants(struct pata_macio_priv *priv) 938static void pata_macio_invariants(struct pata_macio_priv *priv)
939{ 939{
940 const int *bidp; 940 const int *bidp;
941 941
@@ -976,9 +976,8 @@ static void __devinit pata_macio_invariants(struct pata_macio_priv *priv)
976 priv->aapl_bus_id = 1; 976 priv->aapl_bus_id = 1;
977} 977}
978 978
979static void __devinit pata_macio_setup_ios(struct ata_ioports *ioaddr, 979static void pata_macio_setup_ios(struct ata_ioports *ioaddr,
980 void __iomem * base, 980 void __iomem * base, void __iomem * dma)
981 void __iomem * dma)
982{ 981{
983 /* cmd_addr is the base of regs for that port */ 982 /* cmd_addr is the base of regs for that port */
984 ioaddr->cmd_addr = base; 983 ioaddr->cmd_addr = base;
@@ -999,8 +998,8 @@ static void __devinit pata_macio_setup_ios(struct ata_ioports *ioaddr,
999 ioaddr->bmdma_addr = dma; 998 ioaddr->bmdma_addr = dma;
1000} 999}
1001 1000
1002static void __devinit pmac_macio_calc_timing_masks(struct pata_macio_priv *priv, 1001static void pmac_macio_calc_timing_masks(struct pata_macio_priv *priv,
1003 struct ata_port_info *pinfo) 1002 struct ata_port_info *pinfo)
1004{ 1003{
1005 int i = 0; 1004 int i = 0;
1006 1005
@@ -1027,11 +1026,11 @@ static void __devinit pmac_macio_calc_timing_masks(struct pata_macio_priv *priv,
1027 pinfo->pio_mask, pinfo->mwdma_mask, pinfo->udma_mask); 1026 pinfo->pio_mask, pinfo->mwdma_mask, pinfo->udma_mask);
1028} 1027}
1029 1028
1030static int __devinit pata_macio_common_init(struct pata_macio_priv *priv, 1029static int pata_macio_common_init(struct pata_macio_priv *priv,
1031 resource_size_t tfregs, 1030 resource_size_t tfregs,
1032 resource_size_t dmaregs, 1031 resource_size_t dmaregs,
1033 resource_size_t fcregs, 1032 resource_size_t fcregs,
1034 unsigned long irq) 1033 unsigned long irq)
1035{ 1034{
1036 struct ata_port_info pinfo; 1035 struct ata_port_info pinfo;
1037 const struct ata_port_info *ppi[] = { &pinfo, NULL }; 1036 const struct ata_port_info *ppi[] = { &pinfo, NULL };
@@ -1113,8 +1112,8 @@ static int __devinit pata_macio_common_init(struct pata_macio_priv *priv,
1113 &pata_macio_sht); 1112 &pata_macio_sht);
1114} 1113}
1115 1114
1116static int __devinit pata_macio_attach(struct macio_dev *mdev, 1115static int pata_macio_attach(struct macio_dev *mdev,
1117 const struct of_device_id *match) 1116 const struct of_device_id *match)
1118{ 1117{
1119 struct pata_macio_priv *priv; 1118 struct pata_macio_priv *priv;
1120 resource_size_t tfregs, dmaregs = 0; 1119 resource_size_t tfregs, dmaregs = 0;
@@ -1190,7 +1189,7 @@ static int __devinit pata_macio_attach(struct macio_dev *mdev,
1190 return rc; 1189 return rc;
1191} 1190}
1192 1191
1193static int __devexit pata_macio_detach(struct macio_dev *mdev) 1192static int pata_macio_detach(struct macio_dev *mdev)
1194{ 1193{
1195 struct ata_host *host = macio_get_drvdata(mdev); 1194 struct ata_host *host = macio_get_drvdata(mdev);
1196 struct pata_macio_priv *priv = host->private_data; 1195 struct pata_macio_priv *priv = host->private_data;
@@ -1257,8 +1256,8 @@ static void pata_macio_mb_event(struct macio_dev* mdev, int mb_state)
1257#endif /* CONFIG_PMAC_MEDIABAY */ 1256#endif /* CONFIG_PMAC_MEDIABAY */
1258 1257
1259 1258
1260static int __devinit pata_macio_pci_attach(struct pci_dev *pdev, 1259static int pata_macio_pci_attach(struct pci_dev *pdev,
1261 const struct pci_device_id *id) 1260 const struct pci_device_id *id)
1262{ 1261{
1263 struct pata_macio_priv *priv; 1262 struct pata_macio_priv *priv;
1264 struct device_node *np; 1263 struct device_node *np;
@@ -1310,7 +1309,7 @@ static int __devinit pata_macio_pci_attach(struct pci_dev *pdev,
1310 return 0; 1309 return 0;
1311} 1310}
1312 1311
1313static void __devexit pata_macio_pci_detach(struct pci_dev *pdev) 1312static void pata_macio_pci_detach(struct pci_dev *pdev)
1314{ 1313{
1315 struct ata_host *host = dev_get_drvdata(&pdev->dev); 1314 struct ata_host *host = dev_get_drvdata(&pdev->dev);
1316 1315
diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c
index ec67f54dc56f..652f57e83484 100644
--- a/drivers/ata/pata_mpc52xx.c
+++ b/drivers/ata/pata_mpc52xx.c
@@ -621,9 +621,10 @@ static struct ata_port_operations mpc52xx_ata_port_ops = {
621 .qc_prep = ata_noop_qc_prep, 621 .qc_prep = ata_noop_qc_prep,
622}; 622};
623 623
624static int __devinit 624static int mpc52xx_ata_init_one(struct device *dev,
625mpc52xx_ata_init_one(struct device *dev, struct mpc52xx_ata_priv *priv, 625 struct mpc52xx_ata_priv *priv,
626 unsigned long raw_ata_regs, int mwdma_mask, int udma_mask) 626 unsigned long raw_ata_regs,
627 int mwdma_mask, int udma_mask)
627{ 628{
628 struct ata_host *host; 629 struct ata_host *host;
629 struct ata_port *ap; 630 struct ata_port *ap;
@@ -667,8 +668,7 @@ mpc52xx_ata_init_one(struct device *dev, struct mpc52xx_ata_priv *priv,
667/* OF Platform driver */ 668/* OF Platform driver */
668/* ======================================================================== */ 669/* ======================================================================== */
669 670
670static int __devinit 671static int mpc52xx_ata_probe(struct platform_device *op)
671mpc52xx_ata_probe(struct platform_device *op)
672{ 672{
673 unsigned int ipb_freq; 673 unsigned int ipb_freq;
674 struct resource res_mem; 674 struct resource res_mem;
diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c
index 4e1194b4c271..ff2e57f3b597 100644
--- a/drivers/ata/pata_octeon_cf.c
+++ b/drivers/ata/pata_octeon_cf.c
@@ -840,7 +840,7 @@ static struct ata_port_operations octeon_cf_ops = {
840 .dev_config = octeon_cf_dev_config, 840 .dev_config = octeon_cf_dev_config,
841}; 841};
842 842
843static int __devinit octeon_cf_probe(struct platform_device *pdev) 843static int octeon_cf_probe(struct platform_device *pdev)
844{ 844{
845 struct resource *res_cs0, *res_cs1; 845 struct resource *res_cs0, *res_cs1;
846 846
diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c
index e5b234c370fa..a7e95a54c782 100644
--- a/drivers/ata/pata_of_platform.c
+++ b/drivers/ata/pata_of_platform.c
@@ -16,7 +16,7 @@
16#include <linux/ata_platform.h> 16#include <linux/ata_platform.h>
17#include <linux/libata.h> 17#include <linux/libata.h>
18 18
19static int __devinit pata_of_platform_probe(struct platform_device *ofdev) 19static int pata_of_platform_probe(struct platform_device *ofdev)
20{ 20{
21 int ret; 21 int ret;
22 struct device_node *dn = ofdev->dev.of_node; 22 struct device_node *dn = ofdev->dev.of_node;
diff --git a/drivers/ata/pata_palmld.c b/drivers/ata/pata_palmld.c
index f9f79fc04a8f..df2bb7504fc8 100644
--- a/drivers/ata/pata_palmld.c
+++ b/drivers/ata/pata_palmld.c
@@ -48,7 +48,7 @@ static struct ata_port_operations palmld_port_ops = {
48 .cable_detect = ata_cable_40wire, 48 .cable_detect = ata_cable_40wire,
49}; 49};
50 50
51static __devinit int palmld_pata_probe(struct platform_device *pdev) 51static int palmld_pata_probe(struct platform_device *pdev)
52{ 52{
53 struct ata_host *host; 53 struct ata_host *host;
54 struct ata_port *ap; 54 struct ata_port *ap;
@@ -109,7 +109,7 @@ err1:
109 return ret; 109 return ret;
110} 110}
111 111
112static __devexit int palmld_pata_remove(struct platform_device *dev) 112static int palmld_pata_remove(struct platform_device *dev)
113{ 113{
114 ata_platform_remove_one(dev); 114 ata_platform_remove_one(dev);
115 115
@@ -127,7 +127,7 @@ static struct platform_driver palmld_pata_platform_driver = {
127 .owner = THIS_MODULE, 127 .owner = THIS_MODULE,
128 }, 128 },
129 .probe = palmld_pata_probe, 129 .probe = palmld_pata_probe,
130 .remove = __devexit_p(palmld_pata_remove), 130 .remove = palmld_pata_remove,
131}; 131};
132 132
133module_platform_driver(palmld_pata_platform_driver); 133module_platform_driver(palmld_pata_platform_driver);
diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c
index c9399c8688c5..3f94a886bb35 100644
--- a/drivers/ata/pata_pdc2027x.c
+++ b/drivers/ata/pata_pdc2027x.c
@@ -700,7 +700,8 @@ static void pdc_ata_setup_port(struct ata_ioports *port, void __iomem *base)
700 * @pdev: instance of pci_dev found 700 * @pdev: instance of pci_dev found
701 * @ent: matching entry in the id_tbl[] 701 * @ent: matching entry in the id_tbl[]
702 */ 702 */
703static int __devinit pdc2027x_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) 703static int pdc2027x_init_one(struct pci_dev *pdev,
704 const struct pci_device_id *ent)
704{ 705{
705 static const unsigned long cmd_offset[] = { 0x17c0, 0x15c0 }; 706 static const unsigned long cmd_offset[] = { 0x17c0, 0x15c0 };
706 static const unsigned long bmdma_offset[] = { 0x1000, 0x1008 }; 707 static const unsigned long bmdma_offset[] = { 0x1000, 0x1008 };
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c
index f4372d0c7ce6..71e093767f4e 100644
--- a/drivers/ata/pata_platform.c
+++ b/drivers/ata/pata_platform.c
@@ -98,12 +98,9 @@ static void pata_platform_setup_port(struct ata_ioports *ioaddr,
98 * 98 *
99 * If no IRQ resource is present, PIO polling mode is used instead. 99 * If no IRQ resource is present, PIO polling mode is used instead.
100 */ 100 */
101int __devinit __pata_platform_probe(struct device *dev, 101int __pata_platform_probe(struct device *dev, struct resource *io_res,
102 struct resource *io_res, 102 struct resource *ctl_res, struct resource *irq_res,
103 struct resource *ctl_res, 103 unsigned int ioport_shift, int __pio_mask)
104 struct resource *irq_res,
105 unsigned int ioport_shift,
106 int __pio_mask)
107{ 104{
108 struct ata_host *host; 105 struct ata_host *host;
109 struct ata_port *ap; 106 struct ata_port *ap;
@@ -178,7 +175,7 @@ int __devinit __pata_platform_probe(struct device *dev,
178} 175}
179EXPORT_SYMBOL_GPL(__pata_platform_probe); 176EXPORT_SYMBOL_GPL(__pata_platform_probe);
180 177
181static int __devinit pata_platform_probe(struct platform_device *pdev) 178static int pata_platform_probe(struct platform_device *pdev)
182{ 179{
183 struct resource *io_res; 180 struct resource *io_res;
184 struct resource *ctl_res; 181 struct resource *ctl_res;
diff --git a/drivers/ata/pata_pxa.c b/drivers/ata/pata_pxa.c
index 4b8ba559fe24..b0ac9e0c5e01 100644
--- a/drivers/ata/pata_pxa.c
+++ b/drivers/ata/pata_pxa.c
@@ -229,7 +229,7 @@ static void pxa_ata_dma_irq(int dma, void *port)
229 complete(&pd->dma_done); 229 complete(&pd->dma_done);
230} 230}
231 231
232static int __devinit pxa_ata_probe(struct platform_device *pdev) 232static int pxa_ata_probe(struct platform_device *pdev)
233{ 233{
234 struct ata_host *host; 234 struct ata_host *host;
235 struct ata_port *ap; 235 struct ata_port *ap;
@@ -369,7 +369,7 @@ static int __devinit pxa_ata_probe(struct platform_device *pdev)
369 return ret; 369 return ret;
370} 370}
371 371
372static int __devexit pxa_ata_remove(struct platform_device *pdev) 372static int pxa_ata_remove(struct platform_device *pdev)
373{ 373{
374 struct ata_host *host = dev_get_drvdata(&pdev->dev); 374 struct ata_host *host = dev_get_drvdata(&pdev->dev);
375 struct pata_pxa_data *data = host->ports[0]->private_data; 375 struct pata_pxa_data *data = host->ports[0]->private_data;
@@ -383,7 +383,7 @@ static int __devexit pxa_ata_remove(struct platform_device *pdev)
383 383
384static struct platform_driver pxa_ata_driver = { 384static struct platform_driver pxa_ata_driver = {
385 .probe = pxa_ata_probe, 385 .probe = pxa_ata_probe,
386 .remove = __devexit_p(pxa_ata_remove), 386 .remove = pxa_ata_remove,
387 .driver = { 387 .driver = {
388 .name = DRV_NAME, 388 .name = DRV_NAME,
389 .owner = THIS_MODULE, 389 .owner = THIS_MODULE,
diff --git a/drivers/ata/pata_rb532_cf.c b/drivers/ata/pata_rb532_cf.c
index 9417101bd5ca..3c5eb8fa6bd1 100644
--- a/drivers/ata/pata_rb532_cf.c
+++ b/drivers/ata/pata_rb532_cf.c
@@ -102,7 +102,7 @@ static void rb532_pata_setup_ports(struct ata_host *ah)
102 ap->ioaddr.error_addr = info->iobase + RB500_CF_REG_ERR; 102 ap->ioaddr.error_addr = info->iobase + RB500_CF_REG_ERR;
103} 103}
104 104
105static __devinit int rb532_pata_driver_probe(struct platform_device *pdev) 105static int rb532_pata_driver_probe(struct platform_device *pdev)
106{ 106{
107 int irq; 107 int irq;
108 int gpio; 108 int gpio;
@@ -177,7 +177,7 @@ err_free_gpio:
177 return ret; 177 return ret;
178} 178}
179 179
180static __devexit int rb532_pata_driver_remove(struct platform_device *pdev) 180static int rb532_pata_driver_remove(struct platform_device *pdev)
181{ 181{
182 struct ata_host *ah = platform_get_drvdata(pdev); 182 struct ata_host *ah = platform_get_drvdata(pdev);
183 struct rb532_cf_info *info = ah->private_data; 183 struct rb532_cf_info *info = ah->private_data;
@@ -190,7 +190,7 @@ static __devexit int rb532_pata_driver_remove(struct platform_device *pdev)
190 190
191static struct platform_driver rb532_pata_platform_driver = { 191static struct platform_driver rb532_pata_platform_driver = {
192 .probe = rb532_pata_driver_probe, 192 .probe = rb532_pata_driver_probe,
193 .remove = __devexit_p(rb532_pata_driver_remove), 193 .remove = rb532_pata_driver_remove,
194 .driver = { 194 .driver = {
195 .name = DRV_NAME, 195 .name = DRV_NAME,
196 .owner = THIS_MODULE, 196 .owner = THIS_MODULE,
diff --git a/drivers/ata/pata_rdc.c b/drivers/ata/pata_rdc.c
index e71f998dd90d..6a8665574fee 100644
--- a/drivers/ata/pata_rdc.c
+++ b/drivers/ata/pata_rdc.c
@@ -321,8 +321,7 @@ static struct scsi_host_template rdc_sht = {
321 * Zero on success, or -ERRNO value. 321 * Zero on success, or -ERRNO value.
322 */ 322 */
323 323
324static int __devinit rdc_init_one(struct pci_dev *pdev, 324static int rdc_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
325 const struct pci_device_id *ent)
326{ 325{
327 struct device *dev = &pdev->dev; 326 struct device *dev = &pdev->dev;
328 struct ata_port_info port_info[2]; 327 struct ata_port_info port_info[2];
diff --git a/drivers/ata/pata_sch.c b/drivers/ata/pata_sch.c
index db0d18cf1c2a..d3830c45a369 100644
--- a/drivers/ata/pata_sch.c
+++ b/drivers/ata/pata_sch.c
@@ -169,8 +169,7 @@ static void sch_set_dmamode(struct ata_port *ap, struct ata_device *adev)
169 * Zero on success, or -ERRNO value. 169 * Zero on success, or -ERRNO value.
170 */ 170 */
171 171
172static int __devinit sch_init_one(struct pci_dev *pdev, 172static int sch_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
173 const struct pci_device_id *ent)
174{ 173{
175 const struct ata_port_info *ppi[] = { &sch_port_info, NULL }; 174 const struct ata_port_info *ppi[] = { &sch_port_info, NULL };
176 175
diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c
index 5cfdf94823d0..64c5f0d0f812 100644
--- a/drivers/ata/pata_sil680.c
+++ b/drivers/ata/pata_sil680.c
@@ -323,8 +323,7 @@ static u8 sil680_init_chip(struct pci_dev *pdev, int *try_mmio)
323 return tmpbyte & 0x30; 323 return tmpbyte & 0x30;
324} 324}
325 325
326static int __devinit sil680_init_one(struct pci_dev *pdev, 326static int sil680_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
327 const struct pci_device_id *id)
328{ 327{
329 static const struct ata_port_info info = { 328 static const struct ata_port_info info = {
330 .flags = ATA_FLAG_SLAVE_POSS, 329 .flags = ATA_FLAG_SLAVE_POSS,
diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c
index dc7d78eecb19..5dba77ccaa0b 100644
--- a/drivers/ata/sata_highbank.c
+++ b/drivers/ata/sata_highbank.c
@@ -260,7 +260,7 @@ static const struct of_device_id ahci_of_match[] = {
260}; 260};
261MODULE_DEVICE_TABLE(of, ahci_of_match); 261MODULE_DEVICE_TABLE(of, ahci_of_match);
262 262
263static int __devinit ahci_highbank_probe(struct platform_device *pdev) 263static int ahci_highbank_probe(struct platform_device *pdev)
264{ 264{
265 struct device *dev = &pdev->dev; 265 struct device *dev = &pdev->dev;
266 struct ahci_host_priv *hpriv; 266 struct ahci_host_priv *hpriv;
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index 68f4fb54d627..35c6b6d09c27 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata/sata_mv.c
@@ -4148,7 +4148,7 @@ err:
4148 * A platform bus SATA device has been unplugged. Perform the needed 4148 * A platform bus SATA device has been unplugged. Perform the needed
4149 * cleanup. Also called on module unload for any active devices. 4149 * cleanup. Also called on module unload for any active devices.
4150 */ 4150 */
4151static int __devexit mv_platform_remove(struct platform_device *pdev) 4151static int mv_platform_remove(struct platform_device *pdev)
4152{ 4152{
4153 struct ata_host *host = platform_get_drvdata(pdev); 4153 struct ata_host *host = platform_get_drvdata(pdev);
4154#if defined(CONFIG_HAVE_CLK) 4154#if defined(CONFIG_HAVE_CLK)
@@ -4215,7 +4215,7 @@ static int mv_platform_resume(struct platform_device *pdev)
4215#endif 4215#endif
4216 4216
4217#ifdef CONFIG_OF 4217#ifdef CONFIG_OF
4218static struct of_device_id mv_sata_dt_ids[] __devinitdata = { 4218static struct of_device_id mv_sata_dt_ids[] = {
4219 { .compatible = "marvell,orion-sata", }, 4219 { .compatible = "marvell,orion-sata", },
4220 {}, 4220 {},
4221}; 4221};
@@ -4224,7 +4224,7 @@ MODULE_DEVICE_TABLE(of, mv_sata_dt_ids);
4224 4224
4225static struct platform_driver mv_platform_driver = { 4225static struct platform_driver mv_platform_driver = {
4226 .probe = mv_platform_probe, 4226 .probe = mv_platform_probe,
4227 .remove = __devexit_p(mv_platform_remove), 4227 .remove = mv_platform_remove,
4228 .suspend = mv_platform_suspend, 4228 .suspend = mv_platform_suspend,
4229 .resume = mv_platform_resume, 4229 .resume = mv_platform_resume,
4230 .driver = { 4230 .driver = {
@@ -4429,7 +4429,7 @@ static int mv_pci_device_resume(struct pci_dev *pdev)
4429#endif 4429#endif
4430 4430
4431static int mv_platform_probe(struct platform_device *pdev); 4431static int mv_platform_probe(struct platform_device *pdev);
4432static int __devexit mv_platform_remove(struct platform_device *pdev); 4432static int mv_platform_remove(struct platform_device *pdev);
4433 4433
4434static int __init mv_init(void) 4434static int __init mv_init(void)
4435{ 4435{
diff --git a/drivers/ata/sata_vsc.c b/drivers/ata/sata_vsc.c
index e8cf88ba145d..44f304b3de63 100644
--- a/drivers/ata/sata_vsc.c
+++ b/drivers/ata/sata_vsc.c
@@ -312,8 +312,7 @@ static struct ata_port_operations vsc_sata_ops = {
312 .scr_write = vsc_sata_scr_write, 312 .scr_write = vsc_sata_scr_write,
313}; 313};
314 314
315static void __devinit vsc_sata_setup_port(struct ata_ioports *port, 315static void vsc_sata_setup_port(struct ata_ioports *port, void __iomem *base)
316 void __iomem *base)
317{ 316{
318 port->cmd_addr = base + VSC_SATA_TF_CMD_OFFSET; 317 port->cmd_addr = base + VSC_SATA_TF_CMD_OFFSET;
319 port->data_addr = base + VSC_SATA_TF_DATA_OFFSET; 318 port->data_addr = base + VSC_SATA_TF_DATA_OFFSET;
@@ -335,8 +334,8 @@ static void __devinit vsc_sata_setup_port(struct ata_ioports *port,
335} 334}
336 335
337 336
338static int __devinit vsc_sata_init_one(struct pci_dev *pdev, 337static int vsc_sata_init_one(struct pci_dev *pdev,
339 const struct pci_device_id *ent) 338 const struct pci_device_id *ent)
340{ 339{
341 static const struct ata_port_info pi = { 340 static const struct ata_port_info pi = {
342 .flags = ATA_FLAG_SATA, 341 .flags = ATA_FLAG_SATA,