diff options
Diffstat (limited to 'common/startup.c')
-rw-r--r-- | common/startup.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/startup.c b/common/startup.c index 7179f81203..0f67ca43af 100644 --- a/common/startup.c +++ b/common/startup.c @@ -77,9 +77,13 @@ void early_init (void) #ifdef CONFIG_DEFAULT_ENVIRONMENT #include <uboot_default_env.h> +static struct memory_platform_data default_env_platform_data = { + .name = "defaultenv", +}; + static struct device_d default_env_dev = { - .name = "rom", - .id = "defaultenv", + .name = "mem", + .platform_data = &default_env_platform_data, }; static void register_default_env(void) |