diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2014-07-10 17:19:19 +0800 |
---|---|---|
committer | Haojian Zhuang <haojian.zhuang@linaro.org> | 2014-07-10 17:19:19 +0800 |
commit | 1ba8048ec6dbe710e6c5f9c299e0ab06a8c2f548 (patch) | |
tree | cb329b1457a17e0254083f9f11dee76e12b3f277 | |
parent | 411c19ce763ed358064900bffcce260e3fd037ed (diff) |
ARM: hisi: fix the sysctrl mappingmcpm-wfi-0710
sysctrl mapping isn't created when we read register in sysctrl.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
-rw-r--r-- | arch/arm/mach-hisi/platmcpm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-hisi/platmcpm.c b/arch/arm/mach-hisi/platmcpm.c index 143fcdf3fd9f..3cad973382ab 100644 --- a/arch/arm/mach-hisi/platmcpm.c +++ b/arch/arm/mach-hisi/platmcpm.c @@ -185,6 +185,13 @@ static int __init hip04_mcpm_init(void) goto err; } + sysctrl = of_iomap(np, 0); + if (!sysctrl) { + pr_err("failed to get sysctrl base\n"); + ret = -ENOMEM; + goto err_sysctrl; + } + if (!hip04_cpu_table_init()) return -EINVAL; ret = mcpm_platform_register(&hip04_mcpm_ops); @@ -194,6 +201,8 @@ static int __init hip04_mcpm_init(void) } mcpm_smp_set_ops(); return ret; +err_sysctrl: + iounmap(relocation); err: return ret; } |