Skip to content

Commit

Permalink
vt6656: Use request_firmware() to load firmware
Browse files Browse the repository at this point in the history
The file added to linux-firmware is a copy of the current array which
does not have a recognisable header, so no validation is done.

Change the firmware version check to accept newer versions.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Ben Hutchings authored and Greg Kroah-Hartman committed Jan 21, 2011
1 parent f1bc434 commit 31d5bbf
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 753 deletions.
1 change: 1 addition & 0 deletions drivers/staging/vt6656/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ config VT6656
depends on USB && WLAN
select WIRELESS_EXT
select WEXT_PRIV
select FW_LOADER
---help---
This is a vendor-written driver for VIA VT6656.

3 changes: 3 additions & 0 deletions drivers/staging/vt6656/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
#include <linux/reboot.h>
#include <linux/usb.h>
#include <linux/signal.h>
#include <linux/firmware.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#ifdef SIOCETHTOOL
Expand Down Expand Up @@ -421,6 +422,8 @@ typedef struct __device_info {
struct net_device* dev;
struct net_device_stats stats;

const struct firmware *firmware;

OPTIONS sOpts;

struct tasklet_struct CmdWorkItem;
Expand Down
Loading

0 comments on commit 31d5bbf

Please sign in to comment.