fix backported fw loader
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 1 Apr 2013 22:14:48 +0000 (00:14 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Mon, 1 Apr 2013 22:14:48 +0000 (00:14 +0200)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
compat/compat/Kconfig
compat/include/linux/compat-2.6.33.h

index 76e32c3508750b1da1baa4fab5b72170b3f8f55d..8d2b3f2071d23779ad0ae246e8e70deb2bf1839b 100644 (file)
@@ -38,7 +38,7 @@
 
 config BACKPORT_BUILD_FW_LOADER
        tristate
-       default m if BACKPORT_FW_LOADER && !FW_LOADER
+       default m if BACKPORT_FW_LOADER && (!FW_LOADER || BACKPORT_KERNEL_2_6_33)
 
 config BACKPORT_FW_LOADER
        bool
index c0be190e02baad0500c90b6ba960118463c289b1..29305fded4acba6f5c88fe5585f3c950f448a17f 100644 (file)
@@ -32,12 +32,12 @@ static inline void usb_autopm_put_interface_no_suspend(struct usb_interface *int
 }
 #endif /* CONFIG_USB_SUSPEND */
 
-#if defined(CONFIG_COMPAT_FIRMWARE_CLASS)
+#if defined(CPTCFG_BACKPORT_BUILD_FW_LOADER_MODULE)
 #define request_firmware_nowait LINUX_BACKPORT(request_firmware_nowait)
 #define request_firmware LINUX_BACKPORT(request_firmware)
 #define release_firmware LINUX_BACKPORT(release_firmware)
 
-#if defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE)
+#if defined(CPTCFG_COMPAT_FW_LOADER)
 int request_firmware(const struct firmware **fw, const char *name,
                     struct device *device);
 int request_firmware_nowait(