arm:omap:am33xx: fix for CPSW module build
authorHebbar, Gururaja <gururaja.hebbar@ti.com>
Tue, 3 Jan 2012 09:32:01 +0000 (15:02 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:45 +0000 (00:44 +0530)
module build adds _module for related config_xxx and hence checking
only for config_xxx is not sufficent. this patch adds check for
CONFIG_TLK110_WORKAROUND_MODULE also.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
arch/arm/mach-omap2/board-am335xevm.c

index 588917333ca3ea090a1175aa15f15c4fdb88542b..a3bcca5d49b9ceed49de6ac203217a2d8662a875 100644 (file)
 #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,\
@@ -1306,7 +1307,8 @@ static int beaglebone_phy_fixup(struct phy_device *phydev)
        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;