summaryrefslogtreecommitdiffstats
path: root/drivers/clk/sunxi/clk-sun8i-mbus.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2016-09-08 21:57:10 +0200
committerStephen Boyd <sboyd@codeaurora.org>2016-09-08 21:57:10 +0200
commita063c1e120625a88bd63f0dc2534a62a58426e39 (patch)
treeb9606a77ef48f4288d29147f19be4bd0d0c6a9db /drivers/clk/sunxi/clk-sun8i-mbus.c
parentclk: bcm2835: Skip PLLC clocks when deciding on a new clock parent (diff)
parentMerge tag 'sunxi-clk-fixes-for-4.8' of https://git.kernel.org/pub/scm/linux/k... (diff)
downloadlinux-a063c1e120625a88bd63f0dc2534a62a58426e39.tar.xz
linux-a063c1e120625a88bd63f0dc2534a62a58426e39.zip
Merge branch 'clk-fixes' into clk-next
* clk-fixes: clk: sunxi-ng: Fix wrong reset register offsets clk: sunxi-ng: nk: Make ccu_nk_find_best static clk: sunxi-ng: Fix inverted test condition in ccu_helper_wait_for_lock clk: sunxi: Fix return value check in sun8i_a23_mbus_setup() clk: sunxi: pll2: Fix return value check in sun4i_pll2_setup()
Diffstat (limited to 'drivers/clk/sunxi/clk-sun8i-mbus.c')
-rw-r--r--drivers/clk/sunxi/clk-sun8i-mbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sunxi/clk-sun8i-mbus.c b/drivers/clk/sunxi/clk-sun8i-mbus.c
index 411d3033a96e..b200ebf159ee 100644
--- a/drivers/clk/sunxi/clk-sun8i-mbus.c
+++ b/drivers/clk/sunxi/clk-sun8i-mbus.c
@@ -48,7 +48,7 @@ static void __init sun8i_a23_mbus_setup(struct device_node *node)
return;
reg = of_io_request_and_map(node, 0, of_node_full_name(node));
- if (!reg) {
+ if (IS_ERR(reg)) {
pr_err("Could not get registers for sun8i-mbus-clk\n");
goto err_free_parents;
}