Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afa5ec27 authored by Grazvydas Ignotas's avatar Grazvydas Ignotas Committed by John W. Linville
Browse files

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: default avatarGrazvydas Ignotas <notasas@gmail.com>
Acked-by: default avatarKalle Valo <kvalo@adurom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f8e1d080
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -201,8 +201,8 @@ static int wl1251_chip_wakeup(struct wl1251 *wl)
			goto out;
	}

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