backports: fix rndis-wlan usb dependencies
authorJohannes Berg <johannes.berg@intel.com>
Mon, 15 Apr 2013 11:37:21 +0000 (13:37 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 15 Apr 2013 11:38:45 +0000 (13:38 +0200)
I included that file always, but then when the copy-list
doesn't contain the drivers/net/usb/ directory it would
fail to build ... fix that by including that directory
only conditionally when USB_NET_RNDIS_WLAN is selected.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/Makefile.kernel

index 2f80cc8e6fc735b1e8df46fa227c9b11b2e204c3..5f4655971f160d957c5c9f9036eda4b03c9abcd2 100644 (file)
@@ -29,7 +29,7 @@ obj-$(CPTCFG_BT) += drivers/bluetooth/
 obj-$(CPTCFG_SSB) += drivers/ssb/
 obj-$(CPTCFG_BCMA) += drivers/bcma/
 obj-$(CPTCFG_ETHERNET) += drivers/net/ethernet/
-obj-m += drivers/net/usb/
+obj-$(CTPCFG_USB_NET_RNDIS_WLAN) += drivers/net/usb/
 obj-$(CPTCFG_DRM) += drivers/gpu/drm/
 obj-$(CPTCFG_NFC) += net/nfc/
 obj-$(CPTCFG_NFC) += drivers/nfc/