compat: fixup firmware defines on RHEL6
authorAndy Gospodarek <andy@greyhouse.net>
Tue, 14 Aug 2012 18:59:49 +0000 (14:59 -0400)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 14 Aug 2012 23:07:49 +0000 (16:07 -0700)
Commit 182630e0f686a569aaf9b34781b08f27dc0ab1bb changed the way the
firmware code was handled to create new definitions based on config
options, not based on whether or not CONFIG_COMPAT_FIRMWARE_CLASS
was set.  Both need to be included to make this work properly in
environments like RHEL6 that do not need CONFIG_COMPAT_FIRMWARE_CLASS to
be set, but have CONFIG_FW_LOADER or CONFIG_FW_LOADER_MODULE set.

Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
include/linux/compat-2.6.33.h

index 381146d3afed33cf458e965d37c7e35e87c34d8b..60caab0ab80661511f411b804309bd1600f83acc 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/firmware.h>
 #include <linux/input.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
@@ -49,6 +50,7 @@ static inline void compat_release_firmware(const struct firmware *fw)
 {
 }
 #endif
+#endif
 
 /* mask KEY_RFKILL as RHEL6 backports this */
 #if !defined(KEY_RFKILL)