MLK-13281-2 ARM: imx: missing brackets on phy checking for 6sx
authorJuan Gutierrez <juan.gutierrez@nxp.com>
Thu, 16 Feb 2017 21:01:48 +0000 (15:01 -0600)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:10:45 +0000 (15:10 -0500)
Adding the corresponding brackets were missing when introducing
a new phy fixup function. This patch fix it.

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

index ae1f6e9..3049090 100644 (file)
@@ -67,11 +67,12 @@ static int ar8031_phy_fixup(struct phy_device *dev)
 #define PHY_ID_AR8031   0x004dd074
 static void __init imx6sx_enet_phy_init(void)
 {
-       if (IS_BUILTIN(CONFIG_PHYLIB))
+       if (IS_BUILTIN(CONFIG_PHYLIB)) {
                phy_register_fixup_for_uid(PHY_ID_KSZ9031, MICREL_PHY_ID_MASK,
                                ksz9031rn_phy_fixup);
                phy_register_fixup_for_uid(PHY_ID_AR8031, 0xffffffff,
                                           ar8031_phy_fixup);
+       }
 }
 
 static void __init imx6sx_enet_clk_sel(void)