X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=env%2Fnvram.c;h=a78db21623637299d7a9b6deea59779046b444f6;hb=718f7bf7ca31277fbe5fdf49b6fa897736b7f36d;hp=6f76fe4b8d38a7ca106c84d89df9402f57a4aa04;hpb=2166ebf7831674508425daf50c78e481083c6462;p=oweals%2Fu-boot.git diff --git a/env/nvram.c b/env/nvram.c index 6f76fe4b8d..a78db21623 100644 --- a/env/nvram.c +++ b/env/nvram.c @@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000-2010 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH * Andreas Heppel - - * SPDX-License-Identifier: GPL-2.0+ */ /* @@ -26,10 +25,12 @@ #include #include -#include +#include +#include #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -41,7 +42,10 @@ env_t *env_ptr = (env_t *)CONFIG_ENV_ADDR; #endif #ifdef CONFIG_SYS_NVRAM_ACCESS_ROUTINE -static int env_nvram_get_char(int index) +/** Call this function from overridden env_get_char_spec() if you need + * this functionality. + */ +int env_nvram_get_char(int index) { uchar c; @@ -113,9 +117,6 @@ static int env_nvram_init(void) U_BOOT_ENV_LOCATION(nvram) = { .location = ENVL_NVRAM, ENV_NAME("NVRAM") -#ifdef CONFIG_SYS_NVRAM_ACCESS_ROUTINE - .get_char = env_nvram_get_char, -#endif .load = env_nvram_load, .save = env_save_ptr(env_nvram_save), .init = env_nvram_init,