From: Nobuhiro Iwamatsu Date: Mon, 30 Jun 2008 08:45:01 +0000 (+0900) Subject: net: fix compile problem in smc911x driver. X-Git-Tag: v1.3.4-rc1~87 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5cacc5d0ec52678a5eb83ecda5c3bcb22eb47f30;p=kernel%2Fu-boot.git net: fix compile problem in smc911x driver. Signed-off-by: Nobuhiro Iwamatsu Acked-by: Ben Warren --- 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;