summaryrefslogtreecommitdiff
path: root/arch/arm/imx-common/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/imx-common/init.c')
-rw-r--r--arch/arm/imx-common/init.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/imx-common/init.c b/arch/arm/imx-common/init.c
index 036ebb2f17..5b4f828657 100644
--- a/arch/arm/imx-common/init.c
+++ b/arch/arm/imx-common/init.c
@@ -119,11 +119,9 @@ void boot_mode_apply(unsigned cfg_val)
#if defined(CONFIG_MX6)
u32 imx6_src_get_boot_mode(void)
{
- struct src *psrc = (struct src *)SRC_BASE_ADDR;
-
if (imx6_is_bmode_from_gpr9())
- return readl(&psrc->gpr9);
+ return readl(&src_base->gpr9);
else
- return readl(&psrc->sbmr1);
+ return readl(&src_base->sbmr1);
}
#endif