summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>2008-06-30 17:45:01 +0900
committerWolfgang Denk <wd@denx.de>2008-07-07 00:20:21 +0200
commit5cacc5d0ec52678a5eb83ecda5c3bcb22eb47f30 (patch)
tree97ad7dc2b483f0b795e3fcad2e08c75447b1f77a /drivers/net
parent9fea65a6c469b1b474b27446feb58738baba2d31 (diff)
downloadu-boot-imx-5cacc5d0ec52678a5eb83ecda5c3bcb22eb47f30.zip
u-boot-imx-5cacc5d0ec52678a5eb83ecda5c3bcb22eb47f30.tar.gz
u-boot-imx-5cacc5d0ec52678a5eb83ecda5c3bcb22eb47f30.tar.bz2
net: fix compile problem in smc911x driver.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/smc911x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index 7555cb9..a2d3cb2 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -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;