staging rtl8192e: Declare MODULE_FIRMWARE usage
authorTim Gardner <tim.gardner@canonical.com>
Wed, 25 Jul 2012 19:08:47 +0000 (13:08 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Aug 2012 02:23:19 +0000 (19:23 -0700)
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Mike McCormack <mikem@ring3k.org>
Cc: wlanfae <wlanfae@realtek.com>
Cc: Sean MacLennan <seanm@seanm.ca>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Sean MacLennan <seanm@seanm.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c
drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.h
drivers/staging/rtl8192e/rtl8192e/rtl_core.c

index b526fa428679aa58e125c0bcb4d5afbe2c42d123..dd2a96bfcc0c00126d0b2bab5e6e797859f8dcbe 100644 (file)
@@ -265,10 +265,11 @@ bool init_firmware(struct net_device *dev)
                        case FW_SOURCE_IMG_FILE:
                        {
                                if (pfirmware->firmware_buf_size[init_step] == 0) {
-                                       const char *fw_name[3] = { "RTL8192E/boot.img",
-                                                          "RTL8192E/main.img",
-                                                          "RTL8192E/data.img"
-                                                        };
+                                       const char *fw_name[3] = {
+                                                       RTL8192E_BOOT_IMG_FW,
+                                                       RTL8192E_MAIN_IMG_FW,
+                                                       RTL8192E_DATA_IMG_FW
+                                       };
                                        const struct firmware   *fw_entry;
                                        int rc;
                                        rc = request_firmware(&fw_entry,
index caa878833106d683ac03ec3dd9b30c672e7e9975..06d6abc8345ceea9f8d1fc0b5af3866a3726a356 100644 (file)
 
 #define GET_COMMAND_PACKET_FRAG_THRESHOLD(v)   (4*(v/4) - 8)
 
+#define RTL8192E_BOOT_IMG_FW   "RTL8192E/boot.img"
+#define RTL8192E_MAIN_IMG_FW   "RTL8192E/main.img"
+#define RTL8192E_DATA_IMG_FW   "RTL8192E/data.img"
+
 enum firmware_init_step {
        FW_INIT_STEP0_BOOT = 0,
        FW_INIT_STEP1_MAIN = 1,
index 4f602b227b5070196261e5fb1d6b25b89d5d5e54..42e5c5c495e0164cccadb0de18b48b4d4e24d022 100644 (file)
@@ -3125,6 +3125,9 @@ MODULE_DESCRIPTION("Linux driver for Realtek RTL819x WiFi cards");
 MODULE_AUTHOR(DRV_COPYRIGHT " " DRV_AUTHOR);
 MODULE_VERSION(DRV_VERSION);
 MODULE_LICENSE("GPL");
+MODULE_FIRMWARE(RTL8192E_BOOT_IMG_FW);
+MODULE_FIRMWARE(RTL8192E_MAIN_IMG_FW);
+MODULE_FIRMWARE(RTL8192E_DATA_IMG_FW);
 
 module_param(ifname, charp, S_IRUGO|S_IWUSR);
 module_param(hwwep, int, S_IRUGO|S_IWUSR);