Skip to content

Commit fe31edc

Browse files
committed
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>
1 parent 0ec2491 commit fe31edc

39 files changed

Lines changed: 162 additions & 175 deletions

‎drivers/ide/aec62xx.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static const struct ide_port_ops atp86x_port_ops = {
181181
.cable_detect = atp86x_cable_detect,
182182
};
183183

184-
static const struct ide_port_info aec62xx_chipsets[] __devinitconst = {
184+
static const struct ide_port_info aec62xx_chipsets[] = {
185185
{ /* 0: AEC6210 */
186186
.name = DRV_NAME,
187187
.init_chipset = init_chipset_aec62xx,
@@ -251,7 +251,7 @@ static const struct ide_port_info aec62xx_chipsets[] __devinitconst = {
251251
* chips, pass a local copy of 'struct ide_port_info' down the call chain.
252252
*/
253253

254-
static int __devinit aec62xx_init_one(struct pci_dev *dev, const struct pci_device_id *id)
254+
static int aec62xx_init_one(struct pci_dev *dev, const struct pci_device_id *id)
255255
{
256256
const struct chipset_bus_clock_list_entry *bus_clock;
257257
struct ide_port_info d;
@@ -287,7 +287,7 @@ static int __devinit aec62xx_init_one(struct pci_dev *dev, const struct pci_devi
287287
return err;
288288
}
289289

290-
static void __devexit aec62xx_remove(struct pci_dev *dev)
290+
static void aec62xx_remove(struct pci_dev *dev)
291291
{
292292
ide_pci_remove(dev);
293293
pci_disable_device(dev);
@@ -307,7 +307,7 @@ static struct pci_driver aec62xx_pci_driver = {
307307
.name = "AEC62xx_IDE",
308308
.id_table = aec62xx_pci_tbl,
309309
.probe = aec62xx_init_one,
310-
.remove = __devexit_p(aec62xx_remove),
310+
.remove = aec62xx_remove,
311311
.suspend = ide_pci_suspend,
312312
.resume = ide_pci_resume,
313313
};

‎drivers/ide/alim15x3.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ static u8 ali_cable_detect(ide_hwif_t *hwif)
415415
* Sparc systems.
416416
*/
417417

418-
static void __devinit init_hwif_ali15x3 (ide_hwif_t *hwif)
418+
static void init_hwif_ali15x3(ide_hwif_t *hwif)
419419
{
420420
u8 ideic, inmir;
421421
s8 irq_routing_table[] = { -1, 9, 3, 10, 4, 5, 7, 6,
@@ -464,8 +464,7 @@ static void __devinit init_hwif_ali15x3 (ide_hwif_t *hwif)
464464
* Set up the DMA functionality on the ALi 15x3.
465465
*/
466466

467-
static int __devinit init_dma_ali15x3(ide_hwif_t *hwif,
468-
const struct ide_port_info *d)
467+
static int init_dma_ali15x3(ide_hwif_t *hwif, const struct ide_port_info *d)
469468
{
470469
struct pci_dev *dev = to_pci_dev(hwif->dev);
471470
unsigned long base = ide_pci_dma_base(hwif, d);
@@ -512,7 +511,7 @@ static const struct ide_dma_ops ali_dma_ops = {
512511
.dma_sff_read_status = ide_dma_sff_read_status,
513512
};
514513

515-
static const struct ide_port_info ali15x3_chipset __devinitconst = {
514+
static const struct ide_port_info ali15x3_chipset = {
516515
.name = DRV_NAME,
517516
.init_chipset = init_chipset_ali15x3,
518517
.init_hwif = init_hwif_ali15x3,
@@ -532,7 +531,8 @@ static const struct ide_port_info ali15x3_chipset __devinitconst = {
532531
* hot plug layer.
533532
*/
534533

535-
static int __devinit alim15x3_init_one(struct pci_dev *dev, const struct pci_device_id *id)
534+
static int alim15x3_init_one(struct pci_dev *dev,
535+
const struct pci_device_id *id)
536536
{
537537
struct ide_port_info d = ali15x3_chipset;
538538
u8 rev = dev->revision, idx = id->driver_data;

‎drivers/ide/amd74xx.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ static const struct ide_port_ops amd_port_ops = {
223223
.udma_mask = udma, \
224224
}
225225

226-
static const struct ide_port_info amd74xx_chipsets[] __devinitconst = {
226+
static const struct ide_port_info amd74xx_chipsets[] = {
227227
/* 0: AMD7401 */ DECLARE_AMD_DEV(0x00, ATA_UDMA2),
228228
/* 1: AMD7409 */ DECLARE_AMD_DEV(ATA_SWDMA2, ATA_UDMA4),
229229
/* 2: AMD7411/7441 */ DECLARE_AMD_DEV(ATA_SWDMA2, ATA_UDMA5),
@@ -235,7 +235,7 @@ static const struct ide_port_info amd74xx_chipsets[] __devinitconst = {
235235
/* 6: AMD5536 */ DECLARE_AMD_DEV(ATA_SWDMA2, ATA_UDMA5),
236236
};
237237

238-
static int __devinit amd74xx_probe(struct pci_dev *dev, const struct pci_device_id *id)
238+
static int amd74xx_probe(struct pci_dev *dev, const struct pci_device_id *id)
239239
{
240240
struct ide_port_info d;
241241
u8 idx = id->driver_data;

‎drivers/ide/atiixp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static const struct ide_port_ops atiixp_port_ops = {
139139
.cable_detect = atiixp_cable_detect,
140140
};
141141

142-
static const struct ide_port_info atiixp_pci_info[] __devinitconst = {
142+
static const struct ide_port_info atiixp_pci_info[] = {
143143
{ /* 0: IXP200/300/400/700 */
144144
.name = DRV_NAME,
145145
.enablebits = {{0x48,0x01,0x00}, {0x48,0x08,0x00}},
@@ -168,7 +168,7 @@ static const struct ide_port_info atiixp_pci_info[] __devinitconst = {
168168
* finds a device matching our IDE device tables.
169169
*/
170170

171-
static int __devinit atiixp_init_one(struct pci_dev *dev, const struct pci_device_id *id)
171+
static int atiixp_init_one(struct pci_dev *dev, const struct pci_device_id *id)
172172
{
173173
return ide_pci_init_one(dev, &atiixp_pci_info[id->driver_data], NULL);
174174
}

‎drivers/ide/cmd64x.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ static const struct ide_dma_ops cmd646_rev1_dma_ops = {
327327
.dma_sff_read_status = ide_dma_sff_read_status,
328328
};
329329

330-
static const struct ide_port_info cmd64x_chipsets[] __devinitconst = {
330+
static const struct ide_port_info cmd64x_chipsets[] = {
331331
{ /* 0: CMD643 */
332332
.name = DRV_NAME,
333333
.init_chipset = init_chipset_cmd64x,
@@ -373,7 +373,7 @@ static const struct ide_port_info cmd64x_chipsets[] __devinitconst = {
373373
}
374374
};
375375

376-
static int __devinit cmd64x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
376+
static int cmd64x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
377377
{
378378
struct ide_port_info d;
379379
u8 idx = id->driver_data;

‎drivers/ide/cs5520.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static const struct ide_port_ops cs5520_port_ops = {
9494
.set_dma_mode = cs5520_set_dma_mode,
9595
};
9696

97-
static const struct ide_port_info cyrix_chipset __devinitconst = {
97+
static const struct ide_port_info cyrix_chipset = {
9898
.name = DRV_NAME,
9999
.enablebits = { { 0x60, 0x01, 0x01 }, { 0x60, 0x02, 0x02 } },
100100
.port_ops = &cs5520_port_ops,
@@ -108,7 +108,7 @@ static const struct ide_port_info cyrix_chipset __devinitconst = {
108108
* work longhand.
109109
*/
110110

111-
static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_device_id *id)
111+
static int cs5520_init_one(struct pci_dev *dev, const struct pci_device_id *id)
112112
{
113113
const struct ide_port_info *d = &cyrix_chipset;
114114
struct ide_hw hw[2], *hws[] = { NULL, NULL };

‎drivers/ide/cs5530.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static int init_chipset_cs5530(struct pci_dev *dev)
226226
* performs channel-specific pre-initialization before drive probing.
227227
*/
228228

229-
static void __devinit init_hwif_cs5530 (ide_hwif_t *hwif)
229+
static void init_hwif_cs5530 (ide_hwif_t *hwif)
230230
{
231231
unsigned long basereg;
232232
u32 d0_timings;
@@ -245,7 +245,7 @@ static const struct ide_port_ops cs5530_port_ops = {
245245
.udma_filter = cs5530_udma_filter,
246246
};
247247

248-
static const struct ide_port_info cs5530_chipset __devinitconst = {
248+
static const struct ide_port_info cs5530_chipset = {
249249
.name = DRV_NAME,
250250
.init_chipset = init_chipset_cs5530,
251251
.init_hwif = init_hwif_cs5530,
@@ -257,7 +257,7 @@ static const struct ide_port_info cs5530_chipset __devinitconst = {
257257
.udma_mask = ATA_UDMA2,
258258
};
259259

260-
static int __devinit cs5530_init_one(struct pci_dev *dev, const struct pci_device_id *id)
260+
static int cs5530_init_one(struct pci_dev *dev, const struct pci_device_id *id)
261261
{
262262
return ide_pci_init_one(dev, &cs5530_chipset, NULL);
263263
}

‎drivers/ide/cs5535.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static const struct ide_port_ops cs5535_port_ops = {
170170
.cable_detect = cs5535_cable_detect,
171171
};
172172

173-
static const struct ide_port_info cs5535_chipset __devinitconst = {
173+
static const struct ide_port_info cs5535_chipset = {
174174
.name = DRV_NAME,
175175
.port_ops = &cs5535_port_ops,
176176
.host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_POST_SET_MODE,
@@ -179,8 +179,7 @@ static const struct ide_port_info cs5535_chipset __devinitconst = {
179179
.udma_mask = ATA_UDMA4,
180180
};
181181

182-
static int __devinit cs5535_init_one(struct pci_dev *dev,
183-
const struct pci_device_id *id)
182+
static int cs5535_init_one(struct pci_dev *dev, const struct pci_device_id *id)
184183
{
185184
return ide_pci_init_one(dev, &cs5535_chipset, NULL);
186185
}

‎drivers/ide/cy82c693.c‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static void cy82c693_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
145145
pci_dev_put(dev);
146146
}
147147

148-
static void __devinit init_iops_cy82c693(ide_hwif_t *hwif)
148+
static void init_iops_cy82c693(ide_hwif_t *hwif)
149149
{
150150
static ide_hwif_t *primary;
151151
struct pci_dev *dev = to_pci_dev(hwif->dev);
@@ -163,7 +163,7 @@ static const struct ide_port_ops cy82c693_port_ops = {
163163
.set_dma_mode = cy82c693_set_dma_mode,
164164
};
165165

166-
static const struct ide_port_info cy82c693_chipset __devinitconst = {
166+
static const struct ide_port_info cy82c693_chipset = {
167167
.name = DRV_NAME,
168168
.init_iops = init_iops_cy82c693,
169169
.port_ops = &cy82c693_port_ops,
@@ -173,7 +173,8 @@ static const struct ide_port_info cy82c693_chipset __devinitconst = {
173173
.mwdma_mask = ATA_MWDMA2,
174174
};
175175

176-
static int __devinit cy82c693_init_one(struct pci_dev *dev, const struct pci_device_id *id)
176+
static int cy82c693_init_one(struct pci_dev *dev,
177+
const struct pci_device_id *id)
177178
{
178179
struct pci_dev *dev2;
179180
int ret = -ENODEV;
@@ -190,7 +191,7 @@ static int __devinit cy82c693_init_one(struct pci_dev *dev, const struct pci_dev
190191
return ret;
191192
}
192193

193-
static void __devexit cy82c693_remove(struct pci_dev *dev)
194+
static void cy82c693_remove(struct pci_dev *dev)
194195
{
195196
struct ide_host *host = pci_get_drvdata(dev);
196197
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 = {
209210
.name = "Cypress_IDE",
210211
.id_table = cy82c693_pci_tbl,
211212
.probe = cy82c693_init_one,
212-
.remove = __devexit_p(cy82c693_remove),
213+
.remove = cy82c693_remove,
213214
.suspend = ide_pci_suspend,
214215
.resume = ide_pci_resume,
215216
};

‎drivers/ide/delkin_cb.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ static const struct ide_port_info delkin_cb_port_info = {
7171
.chipset = ide_pci,
7272
};
7373

74-
static int __devinit
75-
delkin_cb_probe (struct pci_dev *dev, const struct pci_device_id *id)
74+
static int delkin_cb_probe(struct pci_dev *dev, const struct pci_device_id *id)
7675
{
7776
struct ide_host *host;
7877
unsigned long base;
@@ -158,7 +157,7 @@ static int delkin_cb_resume(struct pci_dev *dev)
158157
#define delkin_cb_resume NULL
159158
#endif
160159

161-
static struct pci_device_id delkin_cb_pci_tbl[] __devinitdata = {
160+
static struct pci_device_id delkin_cb_pci_tbl[] = {
162161
{ 0x1145, 0xf021, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
163162
{ 0x1145, 0xf024, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
164163
{ 0, },

0 commit comments

Comments
 (0)