summaryrefslogtreecommitdiff
path: root/drivers/eepro100.c
diff options
context:
space:
mode:
authorJon Loeliger <jdl@freescale.com>2007-07-09 17:30:01 -0500
committerJon Loeliger <jdl@freescale.com>2007-07-09 17:30:23 -0500
commit07d38a17e964aec4c7827f0ee9a583bc8cc1ad6b (patch)
treee4535601a24564fe1ee0cd1b9ecd08f0b40ada11 /drivers/eepro100.c
parentcde5c64d17cf4834aa7b5c373f288bc7dad27b29 (diff)
downloadu-boot-imx-07d38a17e964aec4c7827f0ee9a583bc8cc1ad6b.zip
u-boot-imx-07d38a17e964aec4c7827f0ee9a583bc8cc1ad6b.tar.gz
u-boot-imx-07d38a17e964aec4c7827f0ee9a583bc8cc1ad6b.tar.bz2
drivers/[a-m]*: Remove obsolete references to CONFIG_COMMANDS
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Diffstat (limited to 'drivers/eepro100.c')
-rw-r--r--drivers/eepro100.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/eepro100.c b/drivers/eepro100.c
index e37f69c..738146e 100644
--- a/drivers/eepro100.c
+++ b/drivers/eepro100.c
@@ -30,7 +30,7 @@
#undef DEBUG
-#if ((CONFIG_COMMANDS & CFG_CMD_NET) || defined(CONFIG_CMD_NET)) \
+#if defined(CONFIG_CMD_NET) \
&& defined(CONFIG_NET_MULTI) && defined(CONFIG_EEPRO100)
/* Ethernet chip registers.
@@ -272,7 +272,7 @@ static inline void OUTL (struct eth_device *dev, int command, u_long addr)
*(volatile u32 *) ((addr + dev->iobase)) = cpu_to_le32 (command);
}
-#if defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
static inline int INL (struct eth_device *dev, u_long addr)
{
return le32_to_cpu (*(volatile u32 *) (addr + dev->iobase));
@@ -386,7 +386,7 @@ static int eepro100_miiphy_write (char *devname, unsigned char addr,
return 0;
}
-#endif /* defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII) */
+#endif
/* Wait for the chip get the command.
*/
@@ -462,7 +462,7 @@ int eepro100_initialize (bd_t * bis)
eth_register (dev);
-#if defined (CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII) || defined(CONFIG_CMD_MII)
+#if defined (CONFIG_MII) || defined(CONFIG_CMD_MII)
/* register mii command access routines */
miiphy_register(dev->name,
eepro100_miiphy_read, eepro100_miiphy_write);