diff options
author | Bai Ping <b51503@freescale.com> | 2015-11-26 03:18:43 +0100 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2015-12-02 07:10:25 +0100 |
commit | 31cbb57d5ac3b8f7a84803eb329fcc8a73fb4ab6 (patch) | |
tree | a2d9fd7e94c5b89d64dc90712d8baba50c8eaead /drivers/clk/imx/clk-imx6ul.c | |
parent | clk: imx: Add a virtual arm clk on i.mx7d (diff) | |
download | linux-31cbb57d5ac3b8f7a84803eb329fcc8a73fb4ab6.tar.xz linux-31cbb57d5ac3b8f7a84803eb329fcc8a73fb4ab6.zip |
clk: imx: Replace clk error check with imx_check_clocks()
As we already have a 'imx_check_clocks' to do the clock error
check, so cleanup the error check code.
Signed-off-by: Bai Ping <b51503@freescale.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk/imx/clk-imx6ul.c')
-rw-r--r-- | drivers/clk/imx/clk-imx6ul.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/imx/clk-imx6ul.c b/drivers/clk/imx/clk-imx6ul.c index 01718d05e952..08692d74b884 100644 --- a/drivers/clk/imx/clk-imx6ul.c +++ b/drivers/clk/imx/clk-imx6ul.c @@ -399,9 +399,7 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node) /* mask handshake of mmdc */ writel_relaxed(BM_CCM_CCDR_MMDC_CH0_MASK, base + CCDR); - for (i = 0; i < ARRAY_SIZE(clks); i++) - if (IS_ERR(clks[i])) - pr_err("i.MX6UL clk %d: register failed with %ld\n", i, PTR_ERR(clks[i])); + imx_check_clocks(clks, ARRAY_SIZE(clks)); clk_data.clks = clks; clk_data.clk_num = ARRAY_SIZE(clks); |