Skip to content

Commit

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

Fixes: ab08aef ("clk: mmp: add pxa168 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 a29e52a commit deab072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/mmp/clk-of-pxa168.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static void __init pxa168_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 Down

0 comments on commit deab072

Please sign in to comment.