mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 12:13:00 -04:00
net: fix compile problem in smc911x driver.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
9fea65a6c4
commit
5cacc5d0ec
@ -33,7 +33,7 @@
|
|||||||
CONFIG_DRIVER_SMC911X_16_BIT shall be set"
|
CONFIG_DRIVER_SMC911X_16_BIT shall be set"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_DRIVER_SMC911X_32_BIT
|
#if defined (CONFIG_DRIVER_SMC911X_32_BIT)
|
||||||
static inline u32 reg_read(u32 addr)
|
static inline u32 reg_read(u32 addr)
|
||||||
{
|
{
|
||||||
return *(volatile u32*)addr;
|
return *(volatile u32*)addr;
|
||||||
@ -42,7 +42,7 @@ static inline void reg_write(u32 addr, u32 val)
|
|||||||
{
|
{
|
||||||
*(volatile u32*)addr = 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)
|
static inline u32 reg_read(u32 addr)
|
||||||
{
|
{
|
||||||
volatile u16 *addr_16 = (u16 *)addr;
|
volatile u16 *addr_16 = (u16 *)addr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user