2010-04-12 22:28:23

by Grazvydas Ignotas

[permalink] [raw]
Subject: [PATCH] wl1251: don't require NVS data when EEPROM is used

If EEPROM is used, NVS data is now loaded but ignored.
Stop loading it to avoid need of dummy NVS file for modules with EEPROM.

Signed-off-by: Grazvydas Ignotas <[email protected]>
---
drivers/net/wireless/wl12xx/wl1251_main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/wl12xx/wl1251_main.c b/drivers/net/wireless/wl12xx/wl1251_main.c
index 7bc109d..99a983f 100644
--- a/drivers/net/wireless/wl12xx/wl1251_main.c
+++ b/drivers/net/wireless/wl12xx/wl1251_main.c
@@ -202,8 +202,8 @@ static int wl1251_chip_wakeup(struct wl1251 *wl)
goto out;
}

- /* No NVS from netlink, try to get it from the filesystem */
- if (wl->nvs == NULL) {
+ if (wl->nvs == NULL && !wl->use_eeprom) {
+ /* No NVS from netlink, try to get it from the filesystem */
ret = wl1251_fetch_nvs(wl);
if (ret < 0)
goto out;
--
1.6.3.3



2010-04-13 17:07:35

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH] wl1251: don't require NVS data when EEPROM is used

Grazvydas Ignotas <[email protected]> writes:

> If EEPROM is used, NVS data is now loaded but ignored.
> Stop loading it to avoid need of dummy NVS file for modules with EEPROM.
>
> Signed-off-by: Grazvydas Ignotas <[email protected]>

Acked-by: Kalle Valo <[email protected]>

Thanks a lot for the patch.

--
Kalle Valo