]> git.sur5r.net Git - u-boot/commitdiff
net: fix compile problem in smc911x driver.
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Mon, 30 Jun 2008 08:45:01 +0000 (17:45 +0900)
committerWolfgang Denk <wd@denx.de>
Sun, 6 Jul 2008 22:20:21 +0000 (00:20 +0200)
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
drivers/net/smc911x.c

index 7555cb967b8941c125d93be7b0de156e2c83ea25..a2d3cb2a7361fced3c7c4646787f32ced5fd7b34 100644 (file)
@@ -33,7 +33,7 @@
        CONFIG_DRIVER_SMC911X_16_BIT shall be set"
 #endif
 
-#ifdef CONFIG_DRIVER_SMC911X_32_BIT
+#if defined (CONFIG_DRIVER_SMC911X_32_BIT)
 static inline u32 reg_read(u32 addr)
 {
        return *(volatile u32*)addr;
@@ -42,7 +42,7 @@ static inline void reg_write(u32 addr, u32 val)
 {
        *(volatile u32*)addr = val;
 }
-#elif CONFIG_DRIVER_SMC911X_16_BIT
+#elif defined (CONFIG_DRIVER_SMC911X_16_BIT)
 static inline u32 reg_read(u32 addr)
 {
        volatile u16 *addr_16 = (u16 *)addr;