imx8m: clock_imx8mm: add missed return
authorPeng Fan <peng.fan@nxp.com>
Wed, 16 Sep 2020 07:17:21 +0000 (15:17 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 17 Sep 2020 12:40:17 +0000 (14:40 +0200)
Add missed return

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx8m/clock_imx8mm.c

index 3610f5b2fca5a9a0f12b16a75a8f0ca91df2e175..9dde11cdedff7d629c7d11e5d23c2bb7ec3592c0 100644 (file)
@@ -360,6 +360,7 @@ void init_clk_ecspi(u32 index)
                clock_enable(CCGR_ECSPI2, 0);
                clock_set_target_val(ECSPI2_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(0));
                clock_enable(CCGR_ECSPI2, 1);
+               return;
        case 2:
                clock_enable(CCGR_ECSPI3, 0);
                clock_set_target_val(ECSPI3_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(0));