mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
orinoco: firmware: consistently compile out fw cache support if not requested
Currently part of support for FW caching is unconditionally compiled in even if it is never used. Consistently remove caching support if not requested by user. Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
afece1c658
commit
2bfc5cb57b
4 changed files with 33 additions and 13 deletions
|
@ -2580,8 +2580,10 @@ struct net_device
|
|||
netif_carrier_off(dev);
|
||||
priv->last_linkstatus = 0xffff;
|
||||
|
||||
#if defined(CONFIG_HERMES_CACHE_FW_ON_INIT) || defined(CONFIG_PM_SLEEP)
|
||||
priv->cached_pri_fw = NULL;
|
||||
priv->cached_fw = NULL;
|
||||
#endif
|
||||
|
||||
/* Register PM notifiers */
|
||||
orinoco_register_pm_notifier(priv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue