From: Rasmus Villemoes Date: Mon, 20 Jun 2022 08:53:21 +0000 (+0200) Subject: imx8m: soc.c: use rom_api_query_boot_infor() wrapper X-Git-Tag: baikal/mips/sdk5.8.2~5^2~273^2~101 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=c9f4c51ea4d9f74481b513ea4e556b37196f688f;p=uboot.git imx8m: soc.c: use rom_api_query_boot_infor() wrapper Reviewed-by: Peng Fan Signed-off-by: Rasmus Villemoes --- diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index e4e56079cf..81fee5801d 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -602,16 +602,13 @@ struct rom_api *g_rom_api = (struct rom_api *)0x980; enum boot_device get_boot_device(void) { - volatile gd_t *pgd = gd; int ret; u32 boot; u16 boot_type; u8 boot_instance; enum boot_device boot_dev = SD1_BOOT; - ret = g_rom_api->query_boot_infor(QUERY_BT_DEV, &boot, - ((uintptr_t)&boot) ^ QUERY_BT_DEV); - set_gd(pgd); + ret = rom_api_query_boot_infor(QUERY_BT_DEV, &boot); if (ret != ROM_API_OKAY) { puts("ROMAPI: failure at query_boot_info\n");