1 --- a/driver/nvram_stub.c
2 +++ b/driver/nvram_stub.c
3 @@ -22,6 +22,7 @@ typedef struct _vars {
4 #define VARS_T_OH sizeof(vars_t)
6 static vars_t *vars = NULL;
7 +static int nvram_init_done = 0;
8 extern char *nvram_buf[];
11 @@ -33,6 +34,10 @@ BCMATTACHFN(nvram_init)(void *si)
16 + if (nvram_init_done != 1)
21 nvs = R_REG(osh, &nvh->len) - sizeof(struct nvram_header);
22 @@ -79,6 +84,10 @@ BCMATTACHFN(nvram_exit)(void *si)
27 + if (nvram_init_done != 0)