aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/siimage.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:21:03 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:03 -0500
commitfe31edc8a3b6081f3580c9ae4c5c61103f3412a5 (patch)
tree84b9d3b008f33031093a73a7bec7f422f3a7eff8 /drivers/ide/siimage.c
parent0ec24914675c48213378da550db494bf154f0f6c (diff)
Drivers: ide: 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: "David S. Miller" <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ide/siimage.c')
-rw-r--r--drivers/ide/siimage.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/ide/siimage.c b/drivers/ide/siimage.c
index 46f7e30d3790..6a1849bb476c 100644
--- a/drivers/ide/siimage.c
+++ b/drivers/ide/siimage.c
@@ -546,7 +546,7 @@ static int init_chipset_siimage(struct pci_dev *dev)
546 * extended PRD tables. For better SI3112 support use the libata driver 546 * extended PRD tables. For better SI3112 support use the libata driver
547 */ 547 */
548 548
549static void __devinit init_mmio_iops_siimage(ide_hwif_t *hwif) 549static void init_mmio_iops_siimage(ide_hwif_t *hwif)
550{ 550{
551 struct pci_dev *dev = to_pci_dev(hwif->dev); 551 struct pci_dev *dev = to_pci_dev(hwif->dev);
552 struct ide_host *host = pci_get_drvdata(dev); 552 struct ide_host *host = pci_get_drvdata(dev);
@@ -646,7 +646,7 @@ static void sil_quirkproc(ide_drive_t *drive)
646 * can get the iops right before using them. 646 * can get the iops right before using them.
647 */ 647 */
648 648
649static void __devinit init_iops_siimage(ide_hwif_t *hwif) 649static void init_iops_siimage(ide_hwif_t *hwif)
650{ 650{
651 struct pci_dev *dev = to_pci_dev(hwif->dev); 651 struct pci_dev *dev = to_pci_dev(hwif->dev);
652 struct ide_host *host = pci_get_drvdata(dev); 652 struct ide_host *host = pci_get_drvdata(dev);
@@ -719,7 +719,7 @@ static const struct ide_dma_ops sil_dma_ops = {
719 .udma_mask = ATA_UDMA6, \ 719 .udma_mask = ATA_UDMA6, \
720 } 720 }
721 721
722static const struct ide_port_info siimage_chipsets[] __devinitconst = { 722static const struct ide_port_info siimage_chipsets[] = {
723 /* 0: SiI680 */ DECLARE_SII_DEV(&sil_pata_port_ops), 723 /* 0: SiI680 */ DECLARE_SII_DEV(&sil_pata_port_ops),
724 /* 1: SiI3112 */ DECLARE_SII_DEV(&sil_sata_port_ops) 724 /* 1: SiI3112 */ DECLARE_SII_DEV(&sil_sata_port_ops)
725}; 725};
@@ -733,8 +733,7 @@ static const struct ide_port_info siimage_chipsets[] __devinitconst = {
733 * We then use the IDE PCI generic helper to do most of the work. 733 * We then use the IDE PCI generic helper to do most of the work.
734 */ 734 */
735 735
736static int __devinit siimage_init_one(struct pci_dev *dev, 736static int siimage_init_one(struct pci_dev *dev, const struct pci_device_id *id)
737 const struct pci_device_id *id)
738{ 737{
739 void __iomem *ioaddr = NULL; 738 void __iomem *ioaddr = NULL;
740 resource_size_t bar5 = pci_resource_start(dev, 5); 739 resource_size_t bar5 = pci_resource_start(dev, 5);
@@ -790,7 +789,7 @@ static int __devinit siimage_init_one(struct pci_dev *dev,
790 return rc; 789 return rc;
791} 790}
792 791
793static void __devexit siimage_remove(struct pci_dev *dev) 792static void siimage_remove(struct pci_dev *dev)
794{ 793{
795 struct ide_host *host = pci_get_drvdata(dev); 794 struct ide_host *host = pci_get_drvdata(dev);
796 void __iomem *ioaddr = host->host_priv; 795 void __iomem *ioaddr = host->host_priv;
@@ -822,7 +821,7 @@ static struct pci_driver siimage_pci_driver = {
822 .name = "SiI_IDE", 821 .name = "SiI_IDE",
823 .id_table = siimage_pci_tbl, 822 .id_table = siimage_pci_tbl,
824 .probe = siimage_init_one, 823 .probe = siimage_init_one,
825 .remove = __devexit_p(siimage_remove), 824 .remove = siimage_remove,
826 .suspend = ide_pci_suspend, 825 .suspend = ide_pci_suspend,
827 .resume = ide_pci_resume, 826 .resume = ide_pci_resume,
828}; 827};