aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/orinoco/orinoco.h
diff options
context:
space:
mode:
authorDavid Kilroy <kilroyd@googlemail.com>2008-11-22 10:37:28 +0000
committerJohn W. Linville <linville@tuxdriver.com>2008-11-26 09:47:47 -0500
commit39d1ffee57c7ce02c90ec8e9272df8aa8ddf600f (patch)
treee13cd6eef6b24084a54cd024c2af19c71f4d0e1f /drivers/net/wireless/orinoco/orinoco.h
parentac7cafd72261857278dff9f737e600b30088653b (diff)
downloadkernel_samsung_smdk4412-39d1ffee57c7ce02c90ec8e9272df8aa8ddf600f.zip
kernel_samsung_smdk4412-39d1ffee57c7ce02c90ec8e9272df8aa8ddf600f.tar.gz
kernel_samsung_smdk4412-39d1ffee57c7ce02c90ec8e9272df8aa8ddf600f.tar.bz2
orinoco: Provide option to avoid unnecessary fw caching
Make firmware caching on startup optional, and make it default. When the option is not selected and PM_SLEEP is configured, then cache firmware in the suspend pm_notifier. This configuration saves about 64k RAM in normal use, but can lead to a situation where the driver is configured to use a different firmware. Signed-off by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/orinoco/orinoco.h')
-rw-r--r--drivers/net/wireless/orinoco/orinoco.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/orinoco/orinoco.h b/drivers/net/wireless/orinoco/orinoco.h
index f6eaea9..00750c8 100644
--- a/drivers/net/wireless/orinoco/orinoco.h
+++ b/drivers/net/wireless/orinoco/orinoco.h
@@ -10,6 +10,7 @@
#define DRIVER_VERSION "0.15"
#include <linux/interrupt.h>
+#include <linux/suspend.h>
#include <linux/netdevice.h>
#include <linux/wireless.h>
#include <net/iw_handler.h>
@@ -170,6 +171,8 @@ struct orinoco_private {
/* Cached in memory firmware to use during ->resume. */
const struct firmware *cached_pri_fw;
const struct firmware *cached_fw;
+
+ struct notifier_block pm_notifier;
};
#ifdef ORINOCO_DEBUG