diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 16:08:55 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:01 -0500 |
commit | 6f039790510fd630ff348efe8c4802dbaa041fba (patch) | |
tree | bf99ab35c78f689a40f3057537209be5f7ca88d6 /drivers/scsi/arm | |
parent | 48c68c4f1b542444f175a9e136febcecf3e704d8 (diff) |
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>
Diffstat (limited to 'drivers/scsi/arm')
-rw-r--r-- | drivers/scsi/arm/acornscsi.c | 7 | ||||
-rw-r--r-- | drivers/scsi/arm/arxescsi.c | 7 | ||||
-rw-r--r-- | drivers/scsi/arm/cumana_1.c | 8 | ||||
-rw-r--r-- | drivers/scsi/arm/cumana_2.c | 8 | ||||
-rw-r--r-- | drivers/scsi/arm/eesox.c | 7 | ||||
-rw-r--r-- | drivers/scsi/arm/oak.c | 7 | ||||
-rw-r--r-- | drivers/scsi/arm/powertec.c | 8 |
7 files changed, 24 insertions, 28 deletions
diff --git a/drivers/scsi/arm/acornscsi.c b/drivers/scsi/arm/acornscsi.c index b330438ac662..3e1172adb37b 100644 --- a/drivers/scsi/arm/acornscsi.c +++ b/drivers/scsi/arm/acornscsi.c | |||
@@ -2965,8 +2965,7 @@ static struct scsi_host_template acornscsi_template = { | |||
2965 | .proc_name = "acornscsi", | 2965 | .proc_name = "acornscsi", |
2966 | }; | 2966 | }; |
2967 | 2967 | ||
2968 | static int __devinit | 2968 | static int acornscsi_probe(struct expansion_card *ec, const struct ecard_id *id) |
2969 | acornscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | ||
2970 | { | 2969 | { |
2971 | struct Scsi_Host *host; | 2970 | struct Scsi_Host *host; |
2972 | AS_Host *ashost; | 2971 | AS_Host *ashost; |
@@ -3032,7 +3031,7 @@ acornscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
3032 | return ret; | 3031 | return ret; |
3033 | } | 3032 | } |
3034 | 3033 | ||
3035 | static void __devexit acornscsi_remove(struct expansion_card *ec) | 3034 | static void acornscsi_remove(struct expansion_card *ec) |
3036 | { | 3035 | { |
3037 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 3036 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
3038 | AS_Host *ashost = (AS_Host *)host->hostdata; | 3037 | AS_Host *ashost = (AS_Host *)host->hostdata; |
@@ -3063,7 +3062,7 @@ static const struct ecard_id acornscsi_cids[] = { | |||
3063 | 3062 | ||
3064 | static struct ecard_driver acornscsi_driver = { | 3063 | static struct ecard_driver acornscsi_driver = { |
3065 | .probe = acornscsi_probe, | 3064 | .probe = acornscsi_probe, |
3066 | .remove = __devexit_p(acornscsi_remove), | 3065 | .remove = acornscsi_remove, |
3067 | .id_table = acornscsi_cids, | 3066 | .id_table = acornscsi_cids, |
3068 | .drv = { | 3067 | .drv = { |
3069 | .name = "acornscsi", | 3068 | .name = "acornscsi", |
diff --git a/drivers/scsi/arm/arxescsi.c b/drivers/scsi/arm/arxescsi.c index 2a28b4ad1975..9274510294ac 100644 --- a/drivers/scsi/arm/arxescsi.c +++ b/drivers/scsi/arm/arxescsi.c | |||
@@ -276,8 +276,7 @@ static struct scsi_host_template arxescsi_template = { | |||
276 | .proc_name = "arxescsi", | 276 | .proc_name = "arxescsi", |
277 | }; | 277 | }; |
278 | 278 | ||
279 | static int __devinit | 279 | static int arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id) |
280 | arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id) | ||
281 | { | 280 | { |
282 | struct Scsi_Host *host; | 281 | struct Scsi_Host *host; |
283 | struct arxescsi_info *info; | 282 | struct arxescsi_info *info; |
@@ -340,7 +339,7 @@ arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
340 | return ret; | 339 | return ret; |
341 | } | 340 | } |
342 | 341 | ||
343 | static void __devexit arxescsi_remove(struct expansion_card *ec) | 342 | static void arxescsi_remove(struct expansion_card *ec) |
344 | { | 343 | { |
345 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 344 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
346 | 345 | ||
@@ -359,7 +358,7 @@ static const struct ecard_id arxescsi_cids[] = { | |||
359 | 358 | ||
360 | static struct ecard_driver arxescsi_driver = { | 359 | static struct ecard_driver arxescsi_driver = { |
361 | .probe = arxescsi_probe, | 360 | .probe = arxescsi_probe, |
362 | .remove = __devexit_p(arxescsi_remove), | 361 | .remove = arxescsi_remove, |
363 | .id_table = arxescsi_cids, | 362 | .id_table = arxescsi_cids, |
364 | .drv = { | 363 | .drv = { |
365 | .name = "arxescsi", | 364 | .name = "arxescsi", |
diff --git a/drivers/scsi/arm/cumana_1.c b/drivers/scsi/arm/cumana_1.c index c3b99c93637a..c93938b246d5 100644 --- a/drivers/scsi/arm/cumana_1.c +++ b/drivers/scsi/arm/cumana_1.c | |||
@@ -225,8 +225,8 @@ static struct scsi_host_template cumanascsi_template = { | |||
225 | .proc_name = "CumanaSCSI-1", | 225 | .proc_name = "CumanaSCSI-1", |
226 | }; | 226 | }; |
227 | 227 | ||
228 | static int __devinit | 228 | static int cumanascsi1_probe(struct expansion_card *ec, |
229 | cumanascsi1_probe(struct expansion_card *ec, const struct ecard_id *id) | 229 | const struct ecard_id *id) |
230 | { | 230 | { |
231 | struct Scsi_Host *host; | 231 | struct Scsi_Host *host; |
232 | int ret; | 232 | int ret; |
@@ -298,7 +298,7 @@ cumanascsi1_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
298 | return ret; | 298 | return ret; |
299 | } | 299 | } |
300 | 300 | ||
301 | static void __devexit cumanascsi1_remove(struct expansion_card *ec) | 301 | static void cumanascsi1_remove(struct expansion_card *ec) |
302 | { | 302 | { |
303 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 303 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
304 | 304 | ||
@@ -320,7 +320,7 @@ static const struct ecard_id cumanascsi1_cids[] = { | |||
320 | 320 | ||
321 | static struct ecard_driver cumanascsi1_driver = { | 321 | static struct ecard_driver cumanascsi1_driver = { |
322 | .probe = cumanascsi1_probe, | 322 | .probe = cumanascsi1_probe, |
323 | .remove = __devexit_p(cumanascsi1_remove), | 323 | .remove = cumanascsi1_remove, |
324 | .id_table = cumanascsi1_cids, | 324 | .id_table = cumanascsi1_cids, |
325 | .drv = { | 325 | .drv = { |
326 | .name = "cumanascsi1", | 326 | .name = "cumanascsi1", |
diff --git a/drivers/scsi/arm/cumana_2.c b/drivers/scsi/arm/cumana_2.c index 547987b86384..e3bae93c3c22 100644 --- a/drivers/scsi/arm/cumana_2.c +++ b/drivers/scsi/arm/cumana_2.c | |||
@@ -397,8 +397,8 @@ static struct scsi_host_template cumanascsi2_template = { | |||
397 | .proc_name = "cumanascsi2", | 397 | .proc_name = "cumanascsi2", |
398 | }; | 398 | }; |
399 | 399 | ||
400 | static int __devinit | 400 | static int cumanascsi2_probe(struct expansion_card *ec, |
401 | cumanascsi2_probe(struct expansion_card *ec, const struct ecard_id *id) | 401 | const struct ecard_id *id) |
402 | { | 402 | { |
403 | struct Scsi_Host *host; | 403 | struct Scsi_Host *host; |
404 | struct cumanascsi2_info *info; | 404 | struct cumanascsi2_info *info; |
@@ -495,7 +495,7 @@ cumanascsi2_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
495 | return ret; | 495 | return ret; |
496 | } | 496 | } |
497 | 497 | ||
498 | static void __devexit cumanascsi2_remove(struct expansion_card *ec) | 498 | static void cumanascsi2_remove(struct expansion_card *ec) |
499 | { | 499 | { |
500 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 500 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
501 | struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; | 501 | struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; |
@@ -519,7 +519,7 @@ static const struct ecard_id cumanascsi2_cids[] = { | |||
519 | 519 | ||
520 | static struct ecard_driver cumanascsi2_driver = { | 520 | static struct ecard_driver cumanascsi2_driver = { |
521 | .probe = cumanascsi2_probe, | 521 | .probe = cumanascsi2_probe, |
522 | .remove = __devexit_p(cumanascsi2_remove), | 522 | .remove = cumanascsi2_remove, |
523 | .id_table = cumanascsi2_cids, | 523 | .id_table = cumanascsi2_cids, |
524 | .drv = { | 524 | .drv = { |
525 | .name = "cumanascsi2", | 525 | .name = "cumanascsi2", |
diff --git a/drivers/scsi/arm/eesox.c b/drivers/scsi/arm/eesox.c index 968d08358d20..8e36908415ec 100644 --- a/drivers/scsi/arm/eesox.c +++ b/drivers/scsi/arm/eesox.c | |||
@@ -515,8 +515,7 @@ static struct scsi_host_template eesox_template = { | |||
515 | .proc_name = "eesox", | 515 | .proc_name = "eesox", |
516 | }; | 516 | }; |
517 | 517 | ||
518 | static int __devinit | 518 | static int eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id) |
519 | eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | ||
520 | { | 519 | { |
521 | struct Scsi_Host *host; | 520 | struct Scsi_Host *host; |
522 | struct eesoxscsi_info *info; | 521 | struct eesoxscsi_info *info; |
@@ -617,7 +616,7 @@ eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
617 | return ret; | 616 | return ret; |
618 | } | 617 | } |
619 | 618 | ||
620 | static void __devexit eesoxscsi_remove(struct expansion_card *ec) | 619 | static void eesoxscsi_remove(struct expansion_card *ec) |
621 | { | 620 | { |
622 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 621 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
623 | struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; | 622 | struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; |
@@ -643,7 +642,7 @@ static const struct ecard_id eesoxscsi_cids[] = { | |||
643 | 642 | ||
644 | static struct ecard_driver eesoxscsi_driver = { | 643 | static struct ecard_driver eesoxscsi_driver = { |
645 | .probe = eesoxscsi_probe, | 644 | .probe = eesoxscsi_probe, |
646 | .remove = __devexit_p(eesoxscsi_remove), | 645 | .remove = eesoxscsi_remove, |
647 | .id_table = eesoxscsi_cids, | 646 | .id_table = eesoxscsi_cids, |
648 | .drv = { | 647 | .drv = { |
649 | .name = "eesoxscsi", | 648 | .name = "eesoxscsi", |
diff --git a/drivers/scsi/arm/oak.c b/drivers/scsi/arm/oak.c index fc6a5aabf66e..48facdc18002 100644 --- a/drivers/scsi/arm/oak.c +++ b/drivers/scsi/arm/oak.c | |||
@@ -129,8 +129,7 @@ static struct scsi_host_template oakscsi_template = { | |||
129 | .proc_name = "oakscsi", | 129 | .proc_name = "oakscsi", |
130 | }; | 130 | }; |
131 | 131 | ||
132 | static int __devinit | 132 | static int oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id) |
133 | oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | ||
134 | { | 133 | { |
135 | struct Scsi_Host *host; | 134 | struct Scsi_Host *host; |
136 | int ret = -ENOMEM; | 135 | int ret = -ENOMEM; |
@@ -182,7 +181,7 @@ oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
182 | return ret; | 181 | return ret; |
183 | } | 182 | } |
184 | 183 | ||
185 | static void __devexit oakscsi_remove(struct expansion_card *ec) | 184 | static void oakscsi_remove(struct expansion_card *ec) |
186 | { | 185 | { |
187 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 186 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
188 | 187 | ||
@@ -202,7 +201,7 @@ static const struct ecard_id oakscsi_cids[] = { | |||
202 | 201 | ||
203 | static struct ecard_driver oakscsi_driver = { | 202 | static struct ecard_driver oakscsi_driver = { |
204 | .probe = oakscsi_probe, | 203 | .probe = oakscsi_probe, |
205 | .remove = __devexit_p(oakscsi_remove), | 204 | .remove = oakscsi_remove, |
206 | .id_table = oakscsi_cids, | 205 | .id_table = oakscsi_cids, |
207 | .drv = { | 206 | .drv = { |
208 | .name = "oakscsi", | 207 | .name = "oakscsi", |
diff --git a/drivers/scsi/arm/powertec.c b/drivers/scsi/arm/powertec.c index 9274c0677b9c..246600b93555 100644 --- a/drivers/scsi/arm/powertec.c +++ b/drivers/scsi/arm/powertec.c | |||
@@ -309,8 +309,8 @@ static struct scsi_host_template powertecscsi_template = { | |||
309 | .proc_name = "powertec", | 309 | .proc_name = "powertec", |
310 | }; | 310 | }; |
311 | 311 | ||
312 | static int __devinit | 312 | static int powertecscsi_probe(struct expansion_card *ec, |
313 | powertecscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | 313 | const struct ecard_id *id) |
314 | { | 314 | { |
315 | struct Scsi_Host *host; | 315 | struct Scsi_Host *host; |
316 | struct powertec_info *info; | 316 | struct powertec_info *info; |
@@ -409,7 +409,7 @@ powertecscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
409 | return ret; | 409 | return ret; |
410 | } | 410 | } |
411 | 411 | ||
412 | static void __devexit powertecscsi_remove(struct expansion_card *ec) | 412 | static void powertecscsi_remove(struct expansion_card *ec) |
413 | { | 413 | { |
414 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 414 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
415 | struct powertec_info *info = (struct powertec_info *)host->hostdata; | 415 | struct powertec_info *info = (struct powertec_info *)host->hostdata; |
@@ -435,7 +435,7 @@ static const struct ecard_id powertecscsi_cids[] = { | |||
435 | 435 | ||
436 | static struct ecard_driver powertecscsi_driver = { | 436 | static struct ecard_driver powertecscsi_driver = { |
437 | .probe = powertecscsi_probe, | 437 | .probe = powertecscsi_probe, |
438 | .remove = __devexit_p(powertecscsi_remove), | 438 | .remove = powertecscsi_remove, |
439 | .id_table = powertecscsi_cids, | 439 | .id_table = powertecscsi_cids, |
440 | .drv = { | 440 | .drv = { |
441 | .name = "powertecscsi", | 441 | .name = "powertecscsi", |