[mac80211] Update compat-wireless to 2009-03-18
[openwrt.git] / package / mac80211 / patches / 306-rt2x00-Fix-module-loading-in-case-of-error-rt2800p.patch
1 From 14f870b27b836acee5f04809287175016ca16b05 Mon Sep 17 00:00:00 2001
2 From: Ivo van Doorn <IvDoorn@gmail.com>
3 Date: Sun, 15 Mar 2009 15:13:58 +0100
4 Subject: [PATCH] rt2x00: Fix module loading in case of error (rt2800pci)
5
6 Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
7 ---
8 drivers/net/wireless/rt2x00/rt2800pci.c | 9 +++++++++
9 1 files changed, 9 insertions(+), 0 deletions(-)
10
11 --- a/drivers/net/wireless/rt2x00/rt2800pci.c
12 +++ b/drivers/net/wireless/rt2x00/rt2800pci.c
13 @@ -3014,10 +3014,19 @@ static int __init rt2800pci_init(void)
14
15 #ifdef CONFIG_RT2800PCI_WISOC
16 ret = platform_driver_register(&rt2800soc_driver);
17 + if (ret)
18 + return ret;
19 #endif
20 #ifdef CONFIG_RT2800PCI_PCI
21 ret = pci_register_driver(&rt2800pci_driver);
22 + if (ret) {
23 +#ifdef CONFIG_RT2800PCI_WISOC
24 + platform_driver_unregister(&rt2800soc_driver);
25 +#endif
26 + return ret;
27 + }
28 #endif
29 +
30 return ret;
31 }
32
This page took 0.041477 seconds and 5 git commands to generate.