Skip to content

Commit

Permalink
clk: mmp: pxa910: fix return value check in pxa910_clk_init()
Browse files Browse the repository at this point in the history
Fix the retrn value check which testing the wrong variable
in pxa910_clk_init().

Fixes: 2bc61da ("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>
  • Loading branch information
Wei Yongjun authored and Stephen Boyd committed Nov 2, 2016
1 parent deab072 commit 10f2bfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/clk/mmp/clk-of-pxa910.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ static void __init pxa910_clk_init(struct device_node *np)
}

pxa_unit->apmu_base = of_iomap(np, 1);
if (!pxa_unit->mpmu_base) {
if (!pxa_unit->apmu_base) {
pr_err("failed to map apmu registers\n");
return;
}
Expand All @@ -294,7 +294,7 @@ static void __init pxa910_clk_init(struct device_node *np)
}

pxa_unit->apbcp_base = of_iomap(np, 3);
if (!pxa_unit->mpmu_base) {
if (!pxa_unit->apbcp_base) {
pr_err("failed to map apbcp registers\n");
return;
}
Expand Down

0 comments on commit 10f2bfb

Please sign in to comment.