Skip to content

Commit 6f03979

Browse files
committed
Drivers: scsi: 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: Adam Radford <linuxraid@lsi.com> Cc: "James E.J. Bottomley" <JBottomley@parallels.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 48c68c4 commit 6f03979

85 files changed

Lines changed: 463 additions & 525 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎drivers/scsi/3w-9xxx.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,7 +2029,7 @@ static struct scsi_host_template driver_template = {
20292029
};
20302030

20312031
/* This function will probe and initialize a card */
2032-
static int __devinit twa_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
2032+
static int twa_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
20332033
{
20342034
struct Scsi_Host *host = NULL;
20352035
TW_Device_Extension *tw_dev;
@@ -2305,7 +2305,7 @@ static int twa_resume(struct pci_dev *pdev)
23052305
#endif
23062306

23072307
/* PCI Devices supported by this driver */
2308-
static struct pci_device_id twa_pci_tbl[] __devinitdata = {
2308+
static struct pci_device_id twa_pci_tbl[] = {
23092309
{ PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_9000,
23102310
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
23112311
{ PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_9550SX,

‎drivers/scsi/3w-sas.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ static struct scsi_host_template driver_template = {
16041604
};
16051605

16061606
/* This function will probe and initialize a card */
1607-
static int __devinit twl_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
1607+
static int twl_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
16081608
{
16091609
struct Scsi_Host *host = NULL;
16101610
TW_Device_Extension *tw_dev;
@@ -1893,7 +1893,7 @@ static int twl_resume(struct pci_dev *pdev)
18931893
#endif
18941894

18951895
/* PCI Devices supported by this driver */
1896-
static struct pci_device_id twl_pci_tbl[] __devinitdata = {
1896+
static struct pci_device_id twl_pci_tbl[] = {
18971897
{ PCI_VDEVICE(3WARE, PCI_DEVICE_ID_3WARE_9750) },
18981898
{ }
18991899
};

‎drivers/scsi/3w-xxxx.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2281,7 +2281,7 @@ static struct scsi_host_template driver_template = {
22812281
};
22822282

22832283
/* This function will probe and initialize a card */
2284-
static int __devinit tw_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
2284+
static int tw_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
22852285
{
22862286
struct Scsi_Host *host = NULL;
22872287
TW_Device_Extension *tw_dev;
@@ -2422,7 +2422,7 @@ static void tw_remove(struct pci_dev *pdev)
24222422
} /* End tw_remove() */
24232423

24242424
/* PCI Devices supported by this driver */
2425-
static struct pci_device_id tw_pci_tbl[] __devinitdata = {
2425+
static struct pci_device_id tw_pci_tbl[] = {
24262426
{ PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_1000,
24272427
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
24282428
{ PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_7000,

‎drivers/scsi/BusLogic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3615,7 +3615,7 @@ static void __exit BusLogic_exit(void)
36153615
__setup("BusLogic=", BusLogic_Setup);
36163616

36173617
#ifdef MODULE
3618-
static struct pci_device_id BusLogic_pci_tbl[] __devinitdata = {
3618+
static struct pci_device_id BusLogic_pci_tbl[] = {
36193619
{ PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER,
36203620
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
36213621
{ PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER_NC,

‎drivers/scsi/NCR5380.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ static char *lprint_opcode(int opcode, char *pos, char *buffer, int length)
814814
* Locks: interrupts must be enabled when we are called
815815
*/
816816

817-
static int __devinit NCR5380_init(struct Scsi_Host *instance, int flags)
817+
static int NCR5380_init(struct Scsi_Host *instance, int flags)
818818
{
819819
NCR5380_local_declare();
820820
int i, pass;

‎drivers/scsi/NCR_D700.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ MODULE_DESCRIPTION("NCR Dual700 SCSI Driver");
114114
MODULE_LICENSE("GPL");
115115
module_param(NCR_D700, charp, 0);
116116

117-
static __u8 __devinitdata id_array[2*(MCA_MAX_SLOT_NR + 1)] =
117+
static __u8 id_array[2*(MCA_MAX_SLOT_NR + 1)] =
118118
{ [0 ... 2*(MCA_MAX_SLOT_NR + 1)-1] = 7 };
119119

120120
#ifdef MODULE
@@ -173,7 +173,7 @@ struct NCR_D700_private {
173173
char pad;
174174
};
175175

176-
static int __devinit
176+
static int
177177
NCR_D700_probe_one(struct NCR_D700_private *p, int siop, int irq,
178178
int slot, u32 region, int differential)
179179
{
@@ -243,7 +243,7 @@ NCR_D700_intr(int irq, void *data)
243243
* essentially connectecd to the MCA bus independently, it is easier
244244
* to set them up as two separate host adapters, rather than one
245245
* adapter with two channels */
246-
static int __devinit
246+
static int
247247
NCR_D700_probe(struct device *dev)
248248
{
249249
struct NCR_D700_private *p;
@@ -349,7 +349,7 @@ NCR_D700_probe(struct device *dev)
349349
return 0;
350350
}
351351

352-
static void __devexit
352+
static void
353353
NCR_D700_remove_one(struct Scsi_Host *host)
354354
{
355355
scsi_remove_host(host);
@@ -359,7 +359,7 @@ NCR_D700_remove_one(struct Scsi_Host *host)
359359
release_region(host->base, 64);
360360
}
361361

362-
static int __devexit
362+
static int
363363
NCR_D700_remove(struct device *dev)
364364
{
365365
struct NCR_D700_private *p = dev_get_drvdata(dev);
@@ -380,7 +380,7 @@ static struct mca_driver NCR_D700_driver = {
380380
.name = "NCR_D700",
381381
.bus = &mca_bus_type,
382382
.probe = NCR_D700_probe,
383-
.remove = __devexit_p(NCR_D700_remove),
383+
.remove = NCR_D700_remove,
384384
},
385385
};
386386

‎drivers/scsi/NCR_Q720.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ static struct mca_driver NCR_Q720_driver = {
351351
.name = "NCR_Q720",
352352
.bus = &mca_bus_type,
353353
.probe = NCR_Q720_probe,
354-
.remove = __devexit_p(NCR_Q720_remove),
354+
.remove = NCR_Q720_remove,
355355
},
356356
};
357357

‎drivers/scsi/a100u2w.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,8 +1082,8 @@ static struct scsi_host_template inia100_template = {
10821082
.use_clustering = ENABLE_CLUSTERING,
10831083
};
10841084

1085-
static int __devinit inia100_probe_one(struct pci_dev *pdev,
1086-
const struct pci_device_id *id)
1085+
static int inia100_probe_one(struct pci_dev *pdev,
1086+
const struct pci_device_id *id)
10871087
{
10881088
struct Scsi_Host *shost;
10891089
struct orc_host *host;
@@ -1197,7 +1197,7 @@ static int __devinit inia100_probe_one(struct pci_dev *pdev,
11971197
return error;
11981198
}
11991199

1200-
static void __devexit inia100_remove_one(struct pci_dev *pdev)
1200+
static void inia100_remove_one(struct pci_dev *pdev)
12011201
{
12021202
struct Scsi_Host *shost = pci_get_drvdata(pdev);
12031203
struct orc_host *host = (struct orc_host *)shost->hostdata;
@@ -1224,7 +1224,7 @@ static struct pci_driver inia100_pci_driver = {
12241224
.name = "inia100",
12251225
.id_table = inia100_pci_tbl,
12261226
.probe = inia100_probe_one,
1227-
.remove = __devexit_p(inia100_remove_one),
1227+
.remove = inia100_remove_one,
12281228
};
12291229

12301230
static int __init inia100_init(void)

‎drivers/scsi/a2091.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ static struct scsi_host_template a2091_scsi_template = {
179179
.use_clustering = DISABLE_CLUSTERING
180180
};
181181

182-
static int __devinit a2091_probe(struct zorro_dev *z,
183-
const struct zorro_device_id *ent)
182+
static int a2091_probe(struct zorro_dev *z, const struct zorro_device_id *ent)
184183
{
185184
struct Scsi_Host *instance;
186185
int error;
@@ -239,7 +238,7 @@ static int __devinit a2091_probe(struct zorro_dev *z,
239238
return error;
240239
}
241240

242-
static void __devexit a2091_remove(struct zorro_dev *z)
241+
static void a2091_remove(struct zorro_dev *z)
243242
{
244243
struct Scsi_Host *instance = zorro_get_drvdata(z);
245244
struct a2091_hostdata *hdata = shost_priv(instance);
@@ -251,7 +250,7 @@ static void __devexit a2091_remove(struct zorro_dev *z)
251250
release_mem_region(z->resource.start, 256);
252251
}
253252

254-
static struct zorro_device_id a2091_zorro_tbl[] __devinitdata = {
253+
static struct zorro_device_id a2091_zorro_tbl[] = {
255254
{ ZORRO_PROD_CBM_A590_A2091_1 },
256255
{ ZORRO_PROD_CBM_A590_A2091_2 },
257256
{ 0 }
@@ -262,7 +261,7 @@ static struct zorro_driver a2091_driver = {
262261
.name = "a2091",
263262
.id_table = a2091_zorro_tbl,
264263
.probe = a2091_probe,
265-
.remove = __devexit_p(a2091_remove),
264+
.remove = a2091_remove,
266265
};
267266

268267
static int __init a2091_init(void)

‎drivers/scsi/aacraid/linit.c‎

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,7 @@ char aac_driver_version[] = AAC_DRIVER_FULL_VERSION;
8888
*
8989
* Note: The last field is used to index into aac_drivers below.
9090
*/
91-
#ifdef DECLARE_PCI_DEVICE_TABLE
92-
static DECLARE_PCI_DEVICE_TABLE(aac_pci_tbl) = {
93-
#elif defined(__devinitconst)
94-
static const struct pci_device_id aac_pci_tbl[] __devinitconst = {
95-
#else
96-
static const struct pci_device_id aac_pci_tbl[] __devinitconst = {
97-
#endif
91+
static const struct pci_device_id aac_pci_tbl[] = {
9892
{ 0x1028, 0x0001, 0x1028, 0x0001, 0, 0, 0 }, /* PERC 2/Si (Iguana/PERC2Si) */
9993
{ 0x1028, 0x0002, 0x1028, 0x0002, 0, 0, 1 }, /* PERC 3/Di (Opal/PERC3Di) */
10094
{ 0x1028, 0x0003, 0x1028, 0x0003, 0, 0, 2 }, /* PERC 3/Si (SlimFast/PERC3Si */
@@ -1107,8 +1101,7 @@ static void __aac_shutdown(struct aac_dev * aac)
11071101
pci_disable_msi(aac->pdev);
11081102
}
11091103

1110-
static int __devinit aac_probe_one(struct pci_dev *pdev,
1111-
const struct pci_device_id *id)
1104+
static int aac_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
11121105
{
11131106
unsigned index = id->driver_data;
11141107
struct Scsi_Host *shost;
@@ -1310,7 +1303,7 @@ static void aac_shutdown(struct pci_dev *dev)
13101303
__aac_shutdown((struct aac_dev *)shost->hostdata);
13111304
}
13121305

1313-
static void __devexit aac_remove_one(struct pci_dev *pdev)
1306+
static void aac_remove_one(struct pci_dev *pdev)
13141307
{
13151308
struct Scsi_Host *shost = pci_get_drvdata(pdev);
13161309
struct aac_dev *aac = (struct aac_dev *)shost->hostdata;
@@ -1341,7 +1334,7 @@ static struct pci_driver aac_pci_driver = {
13411334
.name = AAC_DRIVERNAME,
13421335
.id_table = aac_pci_tbl,
13431336
.probe = aac_probe_one,
1344-
.remove = __devexit_p(aac_remove_one),
1337+
.remove = aac_remove_one,
13451338
.shutdown = aac_shutdown,
13461339
};
13471340

0 commit comments

Comments
 (0)