commit | b58106dfadea053d80c1665b4049c70b476ae899 | [log] [tgz] |
---|---|---|
author | Sean Anderson <seanga2@gmail.com> | Tue Dec 24 23:57:47 2019 -0500 |
committer | Lukasz Majewski <lukma@denx.de> | Sun Jan 26 12:03:06 2020 +0100 |
tree | 34b97e36e7be03ee23c4a8155971e7dd08fbd7b5 | |
parent | 6814a5c8b547c4ef78eab6a68034aa6855ae1ac4 [diff] [blame] |
clk: Fix error checking of dev_read_addr_ptr dev_read_addr_ptr returns NULL on error, not FDT_ADDR_T_NONE. Signed-off-by: Sean Anderson <seanga2@gmail.com>
diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index 5ae4781..bd0d3e4 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c
@@ -115,7 +115,7 @@ /* CCM clocks */ base = dev_read_addr_ptr(dev); - if (base == (void *)FDT_ADDR_T_NONE) + if (!base) return -EINVAL; clk_dm(IMX6QDL_CLK_USDHC1_SEL,