clk: gxl: correct saradc clock id when check sardadc clock [1/1]
authorJian Hu <jian.hu@amlogic.com>
Mon, 3 Dec 2018 09:05:10 +0000 (17:05 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 3 Dec 2018 09:23:03 +0000 (01:23 -0800)
PD#OTT-944

Problem:
saradc check the wrong clock id.

Solution:
correct saradc id.

Verify:
verified on P212 board

Change-Id: I7fdde80c21228e45ec165252549bf4ca5f21bd67
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
drivers/amlogic/clk/gxl/clk_misc.c

index 26e495c..47b74d7 100644 (file)
@@ -486,7 +486,7 @@ void amlogic_init_misc(void)
                &clk_divider_ops,
                saradc_hws[CLKID_SARADC_GATE - CLKID_SARADC_MUX],
                &clk_gate_ops, 0);
-       if (IS_ERR(clks[CLKID_PDM_COMP]))
+       if (IS_ERR(clks[CLKID_SARADC_COMP]))
                pr_err("%s: %d clk_register_composite saradc_composite error\n",
                __func__, __LINE__);