diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 16:23:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:03 -0500 |
commit | 312facaf924edd4db6b81e3a1518adf56c9cd8bd (patch) | |
tree | dd8634e94b527e368a184dccfdadd6c26190f5d8 /drivers/parport/parport_gsc.c | |
parent | fc52692c49969ec72595766929b9f54ac402da34 (diff) |
Drivers: parport: 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,
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Matt Porter <mporter@ti.com>
Cc: Kay Sievers <kay@vrfy.org>
Cc: Gianluca Anzolin <gianluca@sottospazio.it>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parport/parport_gsc.c')
-rw-r--r-- | drivers/parport/parport_gsc.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c index 352f96180bc7..050773c36823 100644 --- a/drivers/parport/parport_gsc.c +++ b/drivers/parport/parport_gsc.c | |||
@@ -137,7 +137,7 @@ struct parport_operations parport_gsc_ops = | |||
137 | /* | 137 | /* |
138 | * Checks for port existence, all ports support SPP MODE | 138 | * Checks for port existence, all ports support SPP MODE |
139 | */ | 139 | */ |
140 | static int __devinit parport_SPP_supported(struct parport *pb) | 140 | static int parport_SPP_supported(struct parport *pb) |
141 | { | 141 | { |
142 | unsigned char r, w; | 142 | unsigned char r, w; |
143 | 143 | ||
@@ -201,7 +201,7 @@ static int __devinit parport_SPP_supported(struct parport *pb) | |||
201 | * be misdetected here is rather academic. | 201 | * be misdetected here is rather academic. |
202 | */ | 202 | */ |
203 | 203 | ||
204 | static int __devinit parport_PS2_supported(struct parport *pb) | 204 | static int parport_PS2_supported(struct parport *pb) |
205 | { | 205 | { |
206 | int ok = 0; | 206 | int ok = 0; |
207 | 207 | ||
@@ -232,10 +232,9 @@ static int __devinit parport_PS2_supported(struct parport *pb) | |||
232 | 232 | ||
233 | /* --- Initialisation code -------------------------------- */ | 233 | /* --- Initialisation code -------------------------------- */ |
234 | 234 | ||
235 | struct parport *__devinit parport_gsc_probe_port (unsigned long base, | 235 | struct parport *parport_gsc_probe_port(unsigned long base, |
236 | unsigned long base_hi, | 236 | unsigned long base_hi, int irq, |
237 | int irq, int dma, | 237 | int dma, struct pci_dev *dev) |
238 | struct pci_dev *dev) | ||
239 | { | 238 | { |
240 | struct parport_gsc_private *priv; | 239 | struct parport_gsc_private *priv; |
241 | struct parport_operations *ops; | 240 | struct parport_operations *ops; |
@@ -345,9 +344,9 @@ struct parport *__devinit parport_gsc_probe_port (unsigned long base, | |||
345 | 344 | ||
346 | #define PARPORT_GSC_OFFSET 0x800 | 345 | #define PARPORT_GSC_OFFSET 0x800 |
347 | 346 | ||
348 | static int __devinitdata parport_count; | 347 | static int parport_count; |
349 | 348 | ||
350 | static int __devinit parport_init_chip(struct parisc_device *dev) | 349 | static int parport_init_chip(struct parisc_device *dev) |
351 | { | 350 | { |
352 | struct parport *p; | 351 | struct parport *p; |
353 | unsigned long port; | 352 | unsigned long port; |
@@ -382,7 +381,7 @@ static int __devinit parport_init_chip(struct parisc_device *dev) | |||
382 | return 0; | 381 | return 0; |
383 | } | 382 | } |
384 | 383 | ||
385 | static int __devexit parport_remove_chip(struct parisc_device *dev) | 384 | static int parport_remove_chip(struct parisc_device *dev) |
386 | { | 385 | { |
387 | struct parport *p = dev_get_drvdata(&dev->dev); | 386 | struct parport *p = dev_get_drvdata(&dev->dev); |
388 | if (p) { | 387 | if (p) { |
@@ -415,15 +414,15 @@ static struct parisc_driver parport_driver = { | |||
415 | .name = "Parallel", | 414 | .name = "Parallel", |
416 | .id_table = parport_tbl, | 415 | .id_table = parport_tbl, |
417 | .probe = parport_init_chip, | 416 | .probe = parport_init_chip, |
418 | .remove = __devexit_p(parport_remove_chip), | 417 | .remove = parport_remove_chip, |
419 | }; | 418 | }; |
420 | 419 | ||
421 | int __devinit parport_gsc_init(void) | 420 | int parport_gsc_init(void) |
422 | { | 421 | { |
423 | return register_parisc_driver(&parport_driver); | 422 | return register_parisc_driver(&parport_driver); |
424 | } | 423 | } |
425 | 424 | ||
426 | static void __devexit parport_gsc_exit(void) | 425 | static void parport_gsc_exit(void) |
427 | { | 426 | { |
428 | unregister_parisc_driver(&parport_driver); | 427 | unregister_parisc_driver(&parport_driver); |
429 | } | 428 | } |