summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/r819xE_firmware.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-08-12 16:37:49 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 12:02:32 -0700
commit8bfd185b950a25e511b5856bdaa67a696e533d1e (patch)
treee0fb0096debe419f9b359e13822bc554ad3f38d2 /drivers/staging/rtl8192e/r819xE_firmware.c
parent96a51d06ccaeb2ca7e23d9e7b9b91c4a45471841 (diff)
downloadop-kernel-dev-8bfd185b950a25e511b5856bdaa67a696e533d1e.zip
op-kernel-dev-8bfd185b950a25e511b5856bdaa67a696e533d1e.tar.gz
Staging: rtl8192e: remove firmware header file not being used
This removes the r819xP firmware file that is never used. The size of the built code after this patch is identical to before it. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192e/r819xE_firmware.c')
-rw-r--r--drivers/staging/rtl8192e/r819xE_firmware.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/drivers/staging/rtl8192e/r819xE_firmware.c b/drivers/staging/rtl8192e/r819xE_firmware.c
index 6b62251..56d7319 100644
--- a/drivers/staging/rtl8192e/r819xE_firmware.c
+++ b/drivers/staging/rtl8192e/r819xE_firmware.c
@@ -14,11 +14,7 @@
//#include "ieee80211.h"
#include "r8192E.h"
#include "r8192E_hw.h"
-#ifdef RTL8190P
-#include "r819xP_firmware_img.h"
-#else
-#include "r819xE_firmware_img.h"
-#endif
+//#include "r819xE_firmware_img.h"
#include "r819xE_firmware.h"
#include <linux/firmware.h>
@@ -195,15 +191,6 @@ bool init_firmware(struct net_device *dev)
struct r8192_priv *priv = ieee80211_priv(dev);
bool rt_status = TRUE;
-#ifdef RTL8190P
- u8 *firmware_img_buf[3] = { &rtl8190_fwboot_array[0],
- &rtl8190_fwmain_array[0],
- &rtl8190_fwdata_array[0]};
-
- u32 firmware_img_len[3] = { sizeof(rtl8190_fwboot_array),
- sizeof(rtl8190_fwmain_array),
- sizeof(rtl8190_fwdata_array)};
-#else
u8 *firmware_img_buf[3] = { &rtl8192e_fwboot_array[0],
&rtl8192e_fwmain_array[0],
&rtl8192e_fwdata_array[0]};
@@ -211,7 +198,6 @@ bool init_firmware(struct net_device *dev)
u32 firmware_img_len[3] = { sizeof(rtl8192e_fwboot_array),
sizeof(rtl8192e_fwmain_array),
sizeof(rtl8192e_fwdata_array)};
-#endif
u32 file_length = 0;
u8 *mapped_file = NULL;
u32 init_step = 0;
@@ -220,16 +206,9 @@ bool init_firmware(struct net_device *dev)
rt_firmware *pfirmware = priv->pFirmware;
const struct firmware *fw_entry;
-#ifdef RTL8190P
- const char *fw_name[3] = { "RTL8190P/boot.img",
- "RTL8190P/main.img",
- "RTL8190P/data.img"};
-#endif
-#ifdef RTL8192E
const char *fw_name[3] = { "RTL8192E/boot.img",
"RTL8192E/main.img",
"RTL8192E/data.img"};
-#endif
int rc;
RT_TRACE(COMP_FIRMWARE, " PlatformInitFirmware()==>\n");
@@ -279,17 +258,11 @@ bool init_firmware(struct net_device *dev)
pfirmware->firmware_buf_size[init_step] = fw_entry->size;
} else {
-#ifdef RTL8190P
- memcpy(pfirmware->firmware_buf[init_step],fw_entry->data,fw_entry->size);
- pfirmware->firmware_buf_size[init_step] = fw_entry->size;
-
-#else
memset(pfirmware->firmware_buf[init_step],0,128);
memcpy(&pfirmware->firmware_buf[init_step][128],fw_entry->data,fw_entry->size);
//mapped_file = pfirmware->firmware_buf[init_step];
pfirmware->firmware_buf_size[init_step] = fw_entry->size+128;
//file_length = fw_entry->size + 128;
-#endif
}
//pfirmware->firmware_buf_size = file_length;
OpenPOWER on IntegriCloud