Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: mmp: pxa910: fix return value check in pxa910_clk_init()

Fix the retrn value check which testing the wrong variable
in pxa910_clk_init().

Fixes: 2bc61da9f7ff ("clk: mmp: add pxa910 DT support for clock driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Wei Yongjun and committed by
Stephen Boyd
10f2bfb0 deab0726

+2 -2
+2 -2
drivers/clk/mmp/clk-of-pxa910.c
··· 282 282 } 283 283 284 284 pxa_unit->apmu_base = of_iomap(np, 1); 285 - if (!pxa_unit->mpmu_base) { 285 + if (!pxa_unit->apmu_base) { 286 286 pr_err("failed to map apmu registers\n"); 287 287 return; 288 288 } ··· 294 294 } 295 295 296 296 pxa_unit->apbcp_base = of_iomap(np, 3); 297 - if (!pxa_unit->mpmu_base) { 297 + if (!pxa_unit->apbcp_base) { 298 298 pr_err("failed to map apbcp registers\n"); 299 299 return; 300 300 }