提交 5cacc5d0 编写于 作者: N Nobuhiro Iwamatsu 提交者: Wolfgang Denk

net: fix compile problem in smc911x driver.

Signed-off-by: NNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Acked-by: NBen Warren <biggerbadderben@gmail.com>
上级 9fea65a6
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册