rtlwifi: Let rtlwifi build when PCI is not enabled
authorWilly Tarreau <w@1wt.eu>
Sun, 20 Feb 2011 10:43:07 +0000 (11:43 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 23 Feb 2011 21:25:30 +0000 (16:25 -0500)
On systems where PCI does not exist, a build of rtlwifi will fail.
Apply the same fix in case there are systems with PCI but not USB.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/Makefile

index c3e83a1da33b370f030b0167d7ed7e220d87b072..52be12e718ab9020e3f43af00d6e91c9e8661f69 100644 (file)
@@ -5,12 +5,15 @@ rtlwifi-objs  :=              \
                core.o          \
                debug.o         \
                efuse.o         \
-               pci.o           \
                ps.o            \
                rc.o            \
                regd.o          \
                usb.o
 
+ifeq ($(CONFIG_PCI),y)
+rtlwifi-objs   += pci.o
+endif
+
 obj-$(CONFIG_RTL8192CE)                += rtl8192ce/
 obj-$(CONFIG_RTL8192CU)                += rtl8192cu/