Skip to content

Commit

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

Fixes: 1ec770d ("clk: mmp: add mmp2 DT support for clock driver")
Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
Wei Yongjun authored and bebarino committed Nov 2, 2016
1 parent 7c1c541 commit a29e52a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/mmp/clk-of-mmp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static void __init mmp2_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 a29e52a

Please sign in to comment.