aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/cy82c693.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/cy82c693.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/cy82c693.c')
-rw-r--r--drivers/ide/cy82c693.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/ide/cy82c693.c b/drivers/ide/cy82c693.c
index 3ffb49dab57..f5820079a28 100644
--- a/drivers/ide/cy82c693.c
+++ b/drivers/ide/cy82c693.c
@@ -145,7 +145,7 @@ static void cy82c693_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
145 pci_dev_put(dev); 145 pci_dev_put(dev);
146} 146}
147 147
148static void __devinit init_iops_cy82c693(ide_hwif_t *hwif) 148static void init_iops_cy82c693(ide_hwif_t *hwif)
149{ 149{
150 static ide_hwif_t *primary; 150 static ide_hwif_t *primary;
151 struct pci_dev *dev = to_pci_dev(hwif->dev); 151 struct pci_dev *dev = to_pci_dev(hwif->dev);
@@ -163,7 +163,7 @@ static const struct ide_port_ops cy82c693_port_ops = {
163 .set_dma_mode = cy82c693_set_dma_mode, 163 .set_dma_mode = cy82c693_set_dma_mode,
164}; 164};
165 165
166static const struct ide_port_info cy82c693_chipset __devinitconst = { 166static const struct ide_port_info cy82c693_chipset = {
167 .name = DRV_NAME, 167 .name = DRV_NAME,
168 .init_iops = init_iops_cy82c693, 168 .init_iops = init_iops_cy82c693,
169 .port_ops = &cy82c693_port_ops, 169 .port_ops = &cy82c693_port_ops,
@@ -173,7 +173,8 @@ static const struct ide_port_info cy82c693_chipset __devinitconst = {
173 .mwdma_mask = ATA_MWDMA2, 173 .mwdma_mask = ATA_MWDMA2,
174}; 174};
175 175
176static int __devinit cy82c693_init_one(struct pci_dev *dev, const struct pci_device_id *id) 176static int cy82c693_init_one(struct pci_dev *dev,
177 const struct pci_device_id *id)
177{ 178{
178 struct pci_dev *dev2; 179 struct pci_dev *dev2;
179 int ret = -ENODEV; 180 int ret = -ENODEV;
@@ -190,7 +191,7 @@ static int __devinit cy82c693_init_one(struct pci_dev *dev, const struct pci_dev
190 return ret; 191 return ret;
191} 192}
192 193
193static void __devexit cy82c693_remove(struct pci_dev *dev) 194static void cy82c693_remove(struct pci_dev *dev)
194{ 195{
195 struct ide_host *host = pci_get_drvdata(dev); 196 struct ide_host *host = pci_get_drvdata(dev);
196 struct pci_dev *dev2 = host->dev[1] ? to_pci_dev(host->dev[1]) : NULL; 197 struct pci_dev *dev2 = host->dev[1] ? to_pci_dev(host->dev[1]) : NULL;
@@ -209,7 +210,7 @@ static struct pci_driver cy82c693_pci_driver = {
209 .name = "Cypress_IDE", 210 .name = "Cypress_IDE",
210 .id_table = cy82c693_pci_tbl, 211 .id_table = cy82c693_pci_tbl,
211 .probe = cy82c693_init_one, 212 .probe = cy82c693_init_one,
212 .remove = __devexit_p(cy82c693_remove), 213 .remove = cy82c693_remove,
213 .suspend = ide_pci_suspend, 214 .suspend = ide_pci_suspend,
214 .resume = ide_pci_resume, 215 .resume = ide_pci_resume,
215}; 216};