diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-03-01 13:53:02 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-03-04 14:05:16 -0500 |
commit | 1ffe4dd126bcad84f0701ca271a7f10494d0c2c8 (patch) | |
tree | 2c0bad4def52db189a9d36e66ee49bd7feff39b3 | |
parent | e2ab758d1649684df5270898ca848e6824ecf38e (diff) |
rtlwifi: usb parts should depend on CONFIG_USB
ERROR: "usb_unanchor_urb" [drivers/net/wireless/rtlwifi/rtlwifi.ko] undefined!
ERROR: "usb_control_msg" [drivers/net/wireless/rtlwifi/rtlwifi.ko] undefined!
ERROR: "usb_submit_urb" [drivers/net/wireless/rtlwifi/rtlwifi.ko] undefined!
ERROR: "usb_get_dev" [drivers/net/wireless/rtlwifi/rtlwifi.ko] undefined!
ERROR: "usb_kill_anchored_urbs" [drivers/net/wireless/rtlwifi/rtlwifi.ko] undefined!
ERROR: "usb_put_dev" [drivers/net/wireless/rtlwifi/rtlwifi.ko] undefined!
ERROR: "usb_free_urb" [drivers/net/wireless/rtlwifi/rtlwifi.ko] undefined!
ERROR: "usb_anchor_urb" [drivers/net/wireless/rtlwifi/rtlwifi.ko] undefined!
ERROR: "usb_alloc_urb" [drivers/net/wireless/rtlwifi/rtlwifi.ko] undefined!
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make: *** [sub-make] Error 2
The USB-part of rtlwifi should depend on CONFIG_USB. This also
corrects the existing check for CONFIG_PCI to build pci.o.
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rtlwifi/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/rtlwifi/Makefile b/drivers/net/wireless/rtlwifi/Makefile index 9192fd583413..ec9393f24799 100644 --- a/drivers/net/wireless/rtlwifi/Makefile +++ b/drivers/net/wireless/rtlwifi/Makefile | |||
@@ -7,15 +7,18 @@ rtlwifi-objs := \ | |||
7 | efuse.o \ | 7 | efuse.o \ |
8 | ps.o \ | 8 | ps.o \ |
9 | rc.o \ | 9 | rc.o \ |
10 | regd.o \ | 10 | regd.o |
11 | usb.o | ||
12 | 11 | ||
13 | rtl8192c_common-objs += \ | 12 | rtl8192c_common-objs += \ |
14 | 13 | ||
15 | ifeq ($(CONFIG_PCI),y) | 14 | ifneq ($(CONFIG_PCI),) |
16 | rtlwifi-objs += pci.o | 15 | rtlwifi-objs += pci.o |
17 | endif | 16 | endif |
18 | 17 | ||
18 | ifneq ($(CONFIG_USB),) | ||
19 | rtlwifi-objs += usb.o | ||
20 | endif | ||
21 | |||
19 | obj-$(CONFIG_RTL8192C_COMMON) += rtl8192c/ | 22 | obj-$(CONFIG_RTL8192C_COMMON) += rtl8192c/ |
20 | obj-$(CONFIG_RTL8192CE) += rtl8192ce/ | 23 | obj-$(CONFIG_RTL8192CE) += rtl8192ce/ |
21 | obj-$(CONFIG_RTL8192CU) += rtl8192cu/ | 24 | obj-$(CONFIG_RTL8192CU) += rtl8192cu/ |