]> git.openfabrics.org - ~emulex/compat.git/commitdiff
compat: Fix cxgb3/cxgb4 missing symbol error on load
authorVipul Pandya <vipul@chelsio.com>
Tue, 31 Jul 2012 09:06:19 +0000 (14:36 +0530)
committerVipul Pandya <vipul@chelsio.com>
Tue, 31 Jul 2012 10:16:21 +0000 (03:16 -0700)
Commit id 182630e0f686a569aaf9b34781b08f27dc0ab1bb was causing missing symbol
error on load time for cxgb3/cxgb4 module. This commit adds additional check to
avoid the issue.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
include/linux/compat-2.6.33.h

index ea4e37bdc39441ddc529a80c904a2a68130218f0..d0d4db119c40f8abd5e66bc44e4fc9e376bc1742 100644 (file)
 #include <linux/input.h>
 #include <linux/sched.h>
 
+#if defined(CONFIG_COMPAT_FIRMWARE_CLASS)
 #if defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE)
 #define release_firmware compat_release_firmware
 #define request_firmware compat_request_firmware
 #define request_firmware_nowait compat_request_firmware_nowait
 #endif
+#endif
 
 #if defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE)
 int compat_request_firmware(const struct firmware **fw, const char *name,