rtlwifi: Let rtlwifi build when PCI is not enabled
[cascardo/linux.git] / drivers / net / wireless / rtlwifi / Makefile
index c3e83a1..52be12e 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/