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 | |
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')
-rw-r--r-- | drivers/parport/parport_gsc.c | 23 | ||||
-rw-r--r-- | drivers/parport/parport_pc.c | 55 | ||||
-rw-r--r-- | drivers/parport/parport_serial.c | 21 | ||||
-rw-r--r-- | drivers/parport/parport_sunbpp.c | 6 |
4 files changed, 50 insertions, 55 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 | } |
diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c index 5abffe58a9d2..903e1285fda0 100644 --- a/drivers/parport/parport_pc.c +++ b/drivers/parport/parport_pc.c | |||
@@ -953,7 +953,7 @@ static struct superio_struct *find_free_superio(void) | |||
953 | 953 | ||
954 | 954 | ||
955 | /* Super-IO chipset detection, Winbond, SMSC */ | 955 | /* Super-IO chipset detection, Winbond, SMSC */ |
956 | static void __devinit show_parconfig_smsc37c669(int io, int key) | 956 | static void show_parconfig_smsc37c669(int io, int key) |
957 | { | 957 | { |
958 | int cr1, cr4, cra, cr23, cr26, cr27; | 958 | int cr1, cr4, cra, cr23, cr26, cr27; |
959 | struct superio_struct *s; | 959 | struct superio_struct *s; |
@@ -1038,7 +1038,7 @@ static void __devinit show_parconfig_smsc37c669(int io, int key) | |||
1038 | } | 1038 | } |
1039 | 1039 | ||
1040 | 1040 | ||
1041 | static void __devinit show_parconfig_winbond(int io, int key) | 1041 | static void show_parconfig_winbond(int io, int key) |
1042 | { | 1042 | { |
1043 | int cr30, cr60, cr61, cr70, cr74, crf0; | 1043 | int cr30, cr60, cr61, cr70, cr74, crf0; |
1044 | struct superio_struct *s; | 1044 | struct superio_struct *s; |
@@ -1106,8 +1106,7 @@ static void __devinit show_parconfig_winbond(int io, int key) | |||
1106 | } | 1106 | } |
1107 | } | 1107 | } |
1108 | 1108 | ||
1109 | static void __devinit decode_winbond(int efer, int key, int devid, | 1109 | static void decode_winbond(int efer, int key, int devid, int devrev, int oldid) |
1110 | int devrev, int oldid) | ||
1111 | { | 1110 | { |
1112 | const char *type = "unknown"; | 1111 | const char *type = "unknown"; |
1113 | int id, progif = 2; | 1112 | int id, progif = 2; |
@@ -1159,7 +1158,7 @@ static void __devinit decode_winbond(int efer, int key, int devid, | |||
1159 | show_parconfig_winbond(efer, key); | 1158 | show_parconfig_winbond(efer, key); |
1160 | } | 1159 | } |
1161 | 1160 | ||
1162 | static void __devinit decode_smsc(int efer, int key, int devid, int devrev) | 1161 | static void decode_smsc(int efer, int key, int devid, int devrev) |
1163 | { | 1162 | { |
1164 | const char *type = "unknown"; | 1163 | const char *type = "unknown"; |
1165 | void (*func)(int io, int key); | 1164 | void (*func)(int io, int key); |
@@ -1193,7 +1192,7 @@ static void __devinit decode_smsc(int efer, int key, int devid, int devrev) | |||
1193 | } | 1192 | } |
1194 | 1193 | ||
1195 | 1194 | ||
1196 | static void __devinit winbond_check(int io, int key) | 1195 | static void winbond_check(int io, int key) |
1197 | { | 1196 | { |
1198 | int origval, devid, devrev, oldid, x_devid, x_devrev, x_oldid; | 1197 | int origval, devid, devrev, oldid, x_devid, x_devrev, x_oldid; |
1199 | 1198 | ||
@@ -1231,7 +1230,7 @@ out: | |||
1231 | release_region(io, 3); | 1230 | release_region(io, 3); |
1232 | } | 1231 | } |
1233 | 1232 | ||
1234 | static void __devinit winbond_check2(int io, int key) | 1233 | static void winbond_check2(int io, int key) |
1235 | { | 1234 | { |
1236 | int origval[3], devid, devrev, oldid, x_devid, x_devrev, x_oldid; | 1235 | int origval[3], devid, devrev, oldid, x_devid, x_devrev, x_oldid; |
1237 | 1236 | ||
@@ -1272,7 +1271,7 @@ out: | |||
1272 | release_region(io, 3); | 1271 | release_region(io, 3); |
1273 | } | 1272 | } |
1274 | 1273 | ||
1275 | static void __devinit smsc_check(int io, int key) | 1274 | static void smsc_check(int io, int key) |
1276 | { | 1275 | { |
1277 | int origval, id, rev, oldid, oldrev, x_id, x_rev, x_oldid, x_oldrev; | 1276 | int origval, id, rev, oldid, oldrev, x_id, x_rev, x_oldid, x_oldrev; |
1278 | 1277 | ||
@@ -1316,7 +1315,7 @@ out: | |||
1316 | } | 1315 | } |
1317 | 1316 | ||
1318 | 1317 | ||
1319 | static void __devinit detect_and_report_winbond(void) | 1318 | static void detect_and_report_winbond(void) |
1320 | { | 1319 | { |
1321 | if (verbose_probing) | 1320 | if (verbose_probing) |
1322 | printk(KERN_DEBUG "Winbond Super-IO detection, now testing ports 3F0,370,250,4E,2E ...\n"); | 1321 | printk(KERN_DEBUG "Winbond Super-IO detection, now testing ports 3F0,370,250,4E,2E ...\n"); |
@@ -1329,7 +1328,7 @@ static void __devinit detect_and_report_winbond(void) | |||
1329 | winbond_check2(0x250, 0x89); | 1328 | winbond_check2(0x250, 0x89); |
1330 | } | 1329 | } |
1331 | 1330 | ||
1332 | static void __devinit detect_and_report_smsc(void) | 1331 | static void detect_and_report_smsc(void) |
1333 | { | 1332 | { |
1334 | if (verbose_probing) | 1333 | if (verbose_probing) |
1335 | printk(KERN_DEBUG "SMSC Super-IO detection, now testing Ports 2F0, 370 ...\n"); | 1334 | printk(KERN_DEBUG "SMSC Super-IO detection, now testing Ports 2F0, 370 ...\n"); |
@@ -1339,7 +1338,7 @@ static void __devinit detect_and_report_smsc(void) | |||
1339 | smsc_check(0x370, 0x44); | 1338 | smsc_check(0x370, 0x44); |
1340 | } | 1339 | } |
1341 | 1340 | ||
1342 | static void __devinit detect_and_report_it87(void) | 1341 | static void detect_and_report_it87(void) |
1343 | { | 1342 | { |
1344 | u16 dev; | 1343 | u16 dev; |
1345 | u8 origval, r; | 1344 | u8 origval, r; |
@@ -1796,24 +1795,24 @@ static int parport_ECPEPP_supported(struct parport *pb) | |||
1796 | #else /* No IEEE 1284 support */ | 1795 | #else /* No IEEE 1284 support */ |
1797 | 1796 | ||
1798 | /* Don't bother probing for modes we know we won't use. */ | 1797 | /* Don't bother probing for modes we know we won't use. */ |
1799 | static int __devinit parport_PS2_supported(struct parport *pb) { return 0; } | 1798 | static int parport_PS2_supported(struct parport *pb) { return 0; } |
1800 | #ifdef CONFIG_PARPORT_PC_FIFO | 1799 | #ifdef CONFIG_PARPORT_PC_FIFO |
1801 | static int parport_ECP_supported(struct parport *pb) | 1800 | static int parport_ECP_supported(struct parport *pb) |
1802 | { | 1801 | { |
1803 | return 0; | 1802 | return 0; |
1804 | } | 1803 | } |
1805 | #endif | 1804 | #endif |
1806 | static int __devinit parport_EPP_supported(struct parport *pb) | 1805 | static int parport_EPP_supported(struct parport *pb) |
1807 | { | 1806 | { |
1808 | return 0; | 1807 | return 0; |
1809 | } | 1808 | } |
1810 | 1809 | ||
1811 | static int __devinit parport_ECPEPP_supported(struct parport *pb) | 1810 | static int parport_ECPEPP_supported(struct parport *pb) |
1812 | { | 1811 | { |
1813 | return 0; | 1812 | return 0; |
1814 | } | 1813 | } |
1815 | 1814 | ||
1816 | static int __devinit parport_ECPPS2_supported(struct parport *pb) | 1815 | static int parport_ECPPS2_supported(struct parport *pb) |
1817 | { | 1816 | { |
1818 | return 0; | 1817 | return 0; |
1819 | } | 1818 | } |
@@ -2269,9 +2268,8 @@ EXPORT_SYMBOL(parport_pc_unregister_port); | |||
2269 | #ifdef CONFIG_PCI | 2268 | #ifdef CONFIG_PCI |
2270 | 2269 | ||
2271 | /* ITE support maintained by Rich Liu <richliu@poorman.org> */ | 2270 | /* ITE support maintained by Rich Liu <richliu@poorman.org> */ |
2272 | static int __devinit sio_ite_8872_probe(struct pci_dev *pdev, int autoirq, | 2271 | static int sio_ite_8872_probe(struct pci_dev *pdev, int autoirq, int autodma, |
2273 | int autodma, | 2272 | const struct parport_pc_via_data *via) |
2274 | const struct parport_pc_via_data *via) | ||
2275 | { | 2273 | { |
2276 | short inta_addr[6] = { 0x2A0, 0x2C0, 0x220, 0x240, 0x1E0 }; | 2274 | short inta_addr[6] = { 0x2A0, 0x2C0, 0x220, 0x240, 0x1E0 }; |
2277 | u32 ite8872set; | 2275 | u32 ite8872set; |
@@ -2377,10 +2375,10 @@ static int __devinit sio_ite_8872_probe(struct pci_dev *pdev, int autoirq, | |||
2377 | 2375 | ||
2378 | /* VIA 8231 support by Pavel Fedin <sonic_amiga@rambler.ru> | 2376 | /* VIA 8231 support by Pavel Fedin <sonic_amiga@rambler.ru> |
2379 | based on VIA 686a support code by Jeff Garzik <jgarzik@pobox.com> */ | 2377 | based on VIA 686a support code by Jeff Garzik <jgarzik@pobox.com> */ |
2380 | static int __devinitdata parport_init_mode; | 2378 | static int parport_init_mode; |
2381 | 2379 | ||
2382 | /* Data for two known VIA chips */ | 2380 | /* Data for two known VIA chips */ |
2383 | static struct parport_pc_via_data via_686a_data __devinitdata = { | 2381 | static struct parport_pc_via_data via_686a_data = { |
2384 | 0x51, | 2382 | 0x51, |
2385 | 0x50, | 2383 | 0x50, |
2386 | 0x85, | 2384 | 0x85, |
@@ -2389,7 +2387,7 @@ static struct parport_pc_via_data via_686a_data __devinitdata = { | |||
2389 | 0xF0, | 2387 | 0xF0, |
2390 | 0xE6 | 2388 | 0xE6 |
2391 | }; | 2389 | }; |
2392 | static struct parport_pc_via_data via_8231_data __devinitdata = { | 2390 | static struct parport_pc_via_data via_8231_data = { |
2393 | 0x45, | 2391 | 0x45, |
2394 | 0x44, | 2392 | 0x44, |
2395 | 0x50, | 2393 | 0x50, |
@@ -2399,9 +2397,8 @@ static struct parport_pc_via_data via_8231_data __devinitdata = { | |||
2399 | 0xF6 | 2397 | 0xF6 |
2400 | }; | 2398 | }; |
2401 | 2399 | ||
2402 | static int __devinit sio_via_probe(struct pci_dev *pdev, int autoirq, | 2400 | static int sio_via_probe(struct pci_dev *pdev, int autoirq, int autodma, |
2403 | int autodma, | 2401 | const struct parport_pc_via_data *via) |
2404 | const struct parport_pc_via_data *via) | ||
2405 | { | 2402 | { |
2406 | u8 tmp, tmp2, siofunc; | 2403 | u8 tmp, tmp2, siofunc; |
2407 | u8 ppcontrol = 0; | 2404 | u8 ppcontrol = 0; |
@@ -2575,7 +2572,7 @@ static struct parport_pc_superio { | |||
2575 | int (*probe) (struct pci_dev *pdev, int autoirq, int autodma, | 2572 | int (*probe) (struct pci_dev *pdev, int autoirq, int autodma, |
2576 | const struct parport_pc_via_data *via); | 2573 | const struct parport_pc_via_data *via); |
2577 | const struct parport_pc_via_data *via; | 2574 | const struct parport_pc_via_data *via; |
2578 | } parport_pc_superio_info[] __devinitdata = { | 2575 | } parport_pc_superio_info[] = { |
2579 | { sio_via_probe, &via_686a_data, }, | 2576 | { sio_via_probe, &via_686a_data, }, |
2580 | { sio_via_probe, &via_8231_data, }, | 2577 | { sio_via_probe, &via_8231_data, }, |
2581 | { sio_ite_8872_probe, NULL, }, | 2578 | { sio_ite_8872_probe, NULL, }, |
@@ -2860,7 +2857,7 @@ static int parport_pc_pci_probe(struct pci_dev *dev, | |||
2860 | return -ENODEV; | 2857 | return -ENODEV; |
2861 | } | 2858 | } |
2862 | 2859 | ||
2863 | static void __devexit parport_pc_pci_remove(struct pci_dev *dev) | 2860 | static void parport_pc_pci_remove(struct pci_dev *dev) |
2864 | { | 2861 | { |
2865 | struct pci_parport_data *data = pci_get_drvdata(dev); | 2862 | struct pci_parport_data *data = pci_get_drvdata(dev); |
2866 | int i; | 2863 | int i; |
@@ -2879,7 +2876,7 @@ static struct pci_driver parport_pc_pci_driver = { | |||
2879 | .name = "parport_pc", | 2876 | .name = "parport_pc", |
2880 | .id_table = parport_pc_pci_tbl, | 2877 | .id_table = parport_pc_pci_tbl, |
2881 | .probe = parport_pc_pci_probe, | 2878 | .probe = parport_pc_pci_probe, |
2882 | .remove = __devexit_p(parport_pc_pci_remove), | 2879 | .remove = parport_pc_pci_remove, |
2883 | }; | 2880 | }; |
2884 | 2881 | ||
2885 | static int __init parport_pc_init_superio(int autoirq, int autodma) | 2882 | static int __init parport_pc_init_superio(int autoirq, int autodma) |
@@ -2983,7 +2980,7 @@ static struct pnp_driver parport_pc_pnp_driver = { | |||
2983 | static struct pnp_driver parport_pc_pnp_driver; | 2980 | static struct pnp_driver parport_pc_pnp_driver; |
2984 | #endif /* CONFIG_PNP */ | 2981 | #endif /* CONFIG_PNP */ |
2985 | 2982 | ||
2986 | static int __devinit parport_pc_platform_probe(struct platform_device *pdev) | 2983 | static int parport_pc_platform_probe(struct platform_device *pdev) |
2987 | { | 2984 | { |
2988 | /* Always succeed, the actual probing is done in | 2985 | /* Always succeed, the actual probing is done in |
2989 | * parport_pc_probe_port(). */ | 2986 | * parport_pc_probe_port(). */ |
@@ -2999,7 +2996,7 @@ static struct platform_driver parport_pc_platform_driver = { | |||
2999 | }; | 2996 | }; |
3000 | 2997 | ||
3001 | /* This is called by parport_pc_find_nonpci_ports (in asm/parport.h) */ | 2998 | /* This is called by parport_pc_find_nonpci_ports (in asm/parport.h) */ |
3002 | static int __devinit __attribute__((unused)) | 2999 | static int __attribute__((unused)) |
3003 | parport_pc_find_isa_ports(int autoirq, int autodma) | 3000 | parport_pc_find_isa_ports(int autoirq, int autodma) |
3004 | { | 3001 | { |
3005 | int count = 0; | 3002 | int count = 0; |
diff --git a/drivers/parport/parport_serial.c b/drivers/parport/parport_serial.c index 1631eeaf440e..ef6169adb845 100644 --- a/drivers/parport/parport_serial.c +++ b/drivers/parport/parport_serial.c | |||
@@ -87,7 +87,8 @@ struct parport_pc_pci { | |||
87 | struct parport_pc_pci *card, int failed); | 87 | struct parport_pc_pci *card, int failed); |
88 | }; | 88 | }; |
89 | 89 | ||
90 | static int __devinit netmos_parallel_init(struct pci_dev *dev, struct parport_pc_pci *par, int autoirq, int autodma) | 90 | static int netmos_parallel_init(struct pci_dev *dev, struct parport_pc_pci *par, |
91 | int autoirq, int autodma) | ||
91 | { | 92 | { |
92 | /* the rule described below doesn't hold for this device */ | 93 | /* the rule described below doesn't hold for this device */ |
93 | if (dev->device == PCI_DEVICE_ID_NETMOS_9835 && | 94 | if (dev->device == PCI_DEVICE_ID_NETMOS_9835 && |
@@ -111,7 +112,7 @@ static int __devinit netmos_parallel_init(struct pci_dev *dev, struct parport_pc | |||
111 | return 0; | 112 | return 0; |
112 | } | 113 | } |
113 | 114 | ||
114 | static struct parport_pc_pci cards[] __devinitdata = { | 115 | static struct parport_pc_pci cards[] = { |
115 | /* titan_110l */ { 1, { { 3, -1 }, } }, | 116 | /* titan_110l */ { 1, { { 3, -1 }, } }, |
116 | /* titan_210l */ { 1, { { 3, -1 }, } }, | 117 | /* titan_210l */ { 1, { { 3, -1 }, } }, |
117 | /* netmos_9xx5_combo */ { 1, { { 2, -1 }, }, netmos_parallel_init }, | 118 | /* netmos_9xx5_combo */ { 1, { { 2, -1 }, }, netmos_parallel_init }, |
@@ -258,7 +259,7 @@ MODULE_DEVICE_TABLE(pci,parport_serial_pci_tbl); | |||
258 | * Cards not tested are marked n/t | 259 | * Cards not tested are marked n/t |
259 | * If you have one of these cards and it works for you, please tell me.. | 260 | * If you have one of these cards and it works for you, please tell me.. |
260 | */ | 261 | */ |
261 | static struct pciserial_board pci_parport_serial_boards[] __devinitdata = { | 262 | static struct pciserial_board pci_parport_serial_boards[] = { |
262 | [titan_110l] = { | 263 | [titan_110l] = { |
263 | .flags = FL_BASE1 | FL_BASE_BARS, | 264 | .flags = FL_BASE1 | FL_BASE_BARS, |
264 | .num_ports = 1, | 265 | .num_ports = 1, |
@@ -479,8 +480,7 @@ struct parport_serial_private { | |||
479 | }; | 480 | }; |
480 | 481 | ||
481 | /* Register the serial port(s) of a PCI card. */ | 482 | /* Register the serial port(s) of a PCI card. */ |
482 | static int __devinit serial_register (struct pci_dev *dev, | 483 | static int serial_register(struct pci_dev *dev, const struct pci_device_id *id) |
483 | const struct pci_device_id *id) | ||
484 | { | 484 | { |
485 | struct parport_serial_private *priv = pci_get_drvdata (dev); | 485 | struct parport_serial_private *priv = pci_get_drvdata (dev); |
486 | struct pciserial_board *board; | 486 | struct pciserial_board *board; |
@@ -501,8 +501,7 @@ static int __devinit serial_register (struct pci_dev *dev, | |||
501 | } | 501 | } |
502 | 502 | ||
503 | /* Register the parallel port(s) of a PCI card. */ | 503 | /* Register the parallel port(s) of a PCI card. */ |
504 | static int __devinit parport_register (struct pci_dev *dev, | 504 | static int parport_register(struct pci_dev *dev, const struct pci_device_id *id) |
505 | const struct pci_device_id *id) | ||
506 | { | 505 | { |
507 | struct parport_pc_pci *card; | 506 | struct parport_pc_pci *card; |
508 | struct parport_serial_private *priv = pci_get_drvdata (dev); | 507 | struct parport_serial_private *priv = pci_get_drvdata (dev); |
@@ -563,8 +562,8 @@ static int __devinit parport_register (struct pci_dev *dev, | |||
563 | return 0; | 562 | return 0; |
564 | } | 563 | } |
565 | 564 | ||
566 | static int __devinit parport_serial_pci_probe (struct pci_dev *dev, | 565 | static int parport_serial_pci_probe(struct pci_dev *dev, |
567 | const struct pci_device_id *id) | 566 | const struct pci_device_id *id) |
568 | { | 567 | { |
569 | struct parport_serial_private *priv; | 568 | struct parport_serial_private *priv; |
570 | int err; | 569 | int err; |
@@ -599,7 +598,7 @@ static int __devinit parport_serial_pci_probe (struct pci_dev *dev, | |||
599 | return 0; | 598 | return 0; |
600 | } | 599 | } |
601 | 600 | ||
602 | static void __devexit parport_serial_pci_remove (struct pci_dev *dev) | 601 | static void parport_serial_pci_remove(struct pci_dev *dev) |
603 | { | 602 | { |
604 | struct parport_serial_private *priv = pci_get_drvdata (dev); | 603 | struct parport_serial_private *priv = pci_get_drvdata (dev); |
605 | int i; | 604 | int i; |
@@ -664,7 +663,7 @@ static struct pci_driver parport_serial_pci_driver = { | |||
664 | .name = "parport_serial", | 663 | .name = "parport_serial", |
665 | .id_table = parport_serial_pci_tbl, | 664 | .id_table = parport_serial_pci_tbl, |
666 | .probe = parport_serial_pci_probe, | 665 | .probe = parport_serial_pci_probe, |
667 | .remove = __devexit_p(parport_serial_pci_remove), | 666 | .remove = parport_serial_pci_remove, |
668 | #ifdef CONFIG_PM | 667 | #ifdef CONFIG_PM |
669 | .suspend = parport_serial_pci_suspend, | 668 | .suspend = parport_serial_pci_suspend, |
670 | .resume = parport_serial_pci_resume, | 669 | .resume = parport_serial_pci_resume, |
diff --git a/drivers/parport/parport_sunbpp.c b/drivers/parport/parport_sunbpp.c index 983a2d2df659..5c4b6a1db6ca 100644 --- a/drivers/parport/parport_sunbpp.c +++ b/drivers/parport/parport_sunbpp.c | |||
@@ -265,7 +265,7 @@ static struct parport_operations parport_sunbpp_ops = | |||
265 | .owner = THIS_MODULE, | 265 | .owner = THIS_MODULE, |
266 | }; | 266 | }; |
267 | 267 | ||
268 | static int __devinit bpp_probe(struct platform_device *op) | 268 | static int bpp_probe(struct platform_device *op) |
269 | { | 269 | { |
270 | struct parport_operations *ops; | 270 | struct parport_operations *ops; |
271 | struct bpp_regs __iomem *regs; | 271 | struct bpp_regs __iomem *regs; |
@@ -330,7 +330,7 @@ out_unmap: | |||
330 | return err; | 330 | return err; |
331 | } | 331 | } |
332 | 332 | ||
333 | static int __devexit bpp_remove(struct platform_device *op) | 333 | static int bpp_remove(struct platform_device *op) |
334 | { | 334 | { |
335 | struct parport *p = dev_get_drvdata(&op->dev); | 335 | struct parport *p = dev_get_drvdata(&op->dev); |
336 | struct parport_operations *ops = p->ops; | 336 | struct parport_operations *ops = p->ops; |
@@ -367,7 +367,7 @@ static struct platform_driver bpp_sbus_driver = { | |||
367 | .of_match_table = bpp_match, | 367 | .of_match_table = bpp_match, |
368 | }, | 368 | }, |
369 | .probe = bpp_probe, | 369 | .probe = bpp_probe, |
370 | .remove = __devexit_p(bpp_remove), | 370 | .remove = bpp_remove, |
371 | }; | 371 | }; |
372 | 372 | ||
373 | module_platform_driver(bpp_sbus_driver); | 373 | module_platform_driver(bpp_sbus_driver); |