arm:omap:am33xx: fix for CPSW module build
[sitara-epos/sitara-epos-kernel.git] / arch / arm / mach-omap2 / board-am335xevm.c
index 588917333ca3ea090a1175aa15f15c4fdb88542b..a3bcca5d49b9ceed49de6ac203217a2d8662a875 100644 (file)
 #define TLK110_SCFALLBACK_VAL  0xC11D
 #define TLK110_PHYRCR_VAL      0x4000
 
 #define TLK110_SCFALLBACK_VAL  0xC11D
 #define TLK110_PHYRCR_VAL      0x4000
 
-#ifdef CONFIG_TLK110_WORKAROUND
+#if defined(CONFIG_TLK110_WORKAROUND) || \
+               defined(CONFIG_TLK110_WORKAROUND_MODULE)
 #define am335x_tlk110_phy_init()\
        do {    \
                phy_register_fixup_for_uid(TLK110_PHY_ID,\
 #define am335x_tlk110_phy_init()\
        do {    \
                phy_register_fixup_for_uid(TLK110_PHY_ID,\
@@ -1306,7 +1307,8 @@ static int beaglebone_phy_fixup(struct phy_device *phydev)
        return 0;
 }
 
        return 0;
 }
 
-#ifdef CONFIG_TLK110_WORKAROUND
+#if defined(CONFIG_TLK110_WORKAROUND) || \
+                       defined(CONFIG_TLK110_WORKAROUND_MODULE)
 static int am335x_tlk110_phy_fixup(struct phy_device *phydev)
 {
        unsigned int val;
 static int am335x_tlk110_phy_fixup(struct phy_device *phydev)
 {
        unsigned int val;