diff options
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_main.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/hostap/hostap_pci.c | 16 | ||||
-rw-r--r-- | drivers/net/wireless/hostap/hostap_plx.c | 16 |
3 files changed, 3 insertions, 32 deletions
diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index bfa0d54221e8..627bc12074c7 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c | |||
@@ -244,8 +244,7 @@ u16 hostap_tx_callback_register(local_info_t *local, | |||
244 | unsigned long flags; | 244 | unsigned long flags; |
245 | struct hostap_tx_callback_info *entry; | 245 | struct hostap_tx_callback_info *entry; |
246 | 246 | ||
247 | entry = kmalloc(sizeof(*entry), | 247 | entry = kmalloc(sizeof(*entry), GFP_KERNEL); |
248 | GFP_ATOMIC); | ||
249 | if (entry == NULL) | 248 | if (entry == NULL) |
250 | return 0; | 249 | return 0; |
251 | 250 | ||
diff --git a/drivers/net/wireless/hostap/hostap_pci.c b/drivers/net/wireless/hostap/hostap_pci.c index 972a9c3af39e..05ca3402dca7 100644 --- a/drivers/net/wireless/hostap/hostap_pci.c +++ b/drivers/net/wireless/hostap/hostap_pci.c | |||
@@ -457,18 +457,4 @@ static struct pci_driver prism2_pci_driver = { | |||
457 | #endif /* CONFIG_PM */ | 457 | #endif /* CONFIG_PM */ |
458 | }; | 458 | }; |
459 | 459 | ||
460 | 460 | module_pci_driver(prism2_pci_driver); | |
461 | static int __init init_prism2_pci(void) | ||
462 | { | ||
463 | return pci_register_driver(&prism2_pci_driver); | ||
464 | } | ||
465 | |||
466 | |||
467 | static void __exit exit_prism2_pci(void) | ||
468 | { | ||
469 | pci_unregister_driver(&prism2_pci_driver); | ||
470 | } | ||
471 | |||
472 | |||
473 | module_init(init_prism2_pci); | ||
474 | module_exit(exit_prism2_pci); | ||
diff --git a/drivers/net/wireless/hostap/hostap_plx.c b/drivers/net/wireless/hostap/hostap_plx.c index 33e79037770b..c3d067ee4db9 100644 --- a/drivers/net/wireless/hostap/hostap_plx.c +++ b/drivers/net/wireless/hostap/hostap_plx.c | |||
@@ -616,18 +616,4 @@ static struct pci_driver prism2_plx_driver = { | |||
616 | .remove = prism2_plx_remove, | 616 | .remove = prism2_plx_remove, |
617 | }; | 617 | }; |
618 | 618 | ||
619 | 619 | module_pci_driver(prism2_plx_driver); | |
620 | static int __init init_prism2_plx(void) | ||
621 | { | ||
622 | return pci_register_driver(&prism2_plx_driver); | ||
623 | } | ||
624 | |||
625 | |||
626 | static void __exit exit_prism2_plx(void) | ||
627 | { | ||
628 | pci_unregister_driver(&prism2_plx_driver); | ||
629 | } | ||
630 | |||
631 | |||
632 | module_init(init_prism2_plx); | ||
633 | module_exit(exit_prism2_plx); | ||