Define barebox_loc magic variable only once
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
705a2e2e25
commit
f8856d422e
|
@ -87,8 +87,6 @@ static int imx_25_35_boot_save_loc(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
coredevice_initcall(imx_25_35_boot_save_loc);
|
coredevice_initcall(imx_25_35_boot_save_loc);
|
||||||
|
|
||||||
BAREBOX_MAGICVAR(barebox_loc, "The source barebox has been booted from");
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_IMX27)
|
#if defined(CONFIG_ARCH_IMX27)
|
||||||
|
@ -114,6 +112,6 @@ static int imx_27_boot_save_loc(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
coredevice_initcall(imx_27_boot_save_loc);
|
coredevice_initcall(imx_27_boot_save_loc);
|
||||||
|
#endif
|
||||||
|
|
||||||
BAREBOX_MAGICVAR(barebox_loc, "The source barebox has been booted from");
|
BAREBOX_MAGICVAR(barebox_loc, "The source barebox has been booted from");
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue