MXSCM-240-4 arm: imx: add missing brackets to mmdc_clk check
authorJuan Gutierrez <juan.gutierrez@nxp.com>
Wed, 8 Feb 2017 01:05:37 +0000 (19:05 -0600)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:58:26 +0000 (14:58 -0500)
Even though is not affecting the behaviour, the brackets are missing
to limit this check for imx6q as was intended in first place

Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
arch/arm/mach-imx/busfreq-imx.c

index 5f96e77..353795c 100644 (file)
@@ -1153,11 +1153,12 @@ static int busfreq_probe(struct platform_device *pdev)
                }
        }
 
-       if (cpu_is_imx6q())
+       if (cpu_is_imx6q()) {
                mmdc_clk = devm_clk_get(&pdev->dev, "mmdc");
                if (IS_ERR(mmdc_clk)) {
                        mmdc_clk = NULL;
                }
+       }
 
        if (cpu_is_imx6sx()) {
                m4_clk = devm_clk_get(&pdev->dev, "m4");