projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
serial: add BCM283x mini UART driver
[oweals/u-boot.git]
/
drivers
/
net
/
eepro100.c
diff --git
a/drivers/net/eepro100.c
b/drivers/net/eepro100.c
index f2cd32c548d86fc175520b9436c55032b2aaa79f..d4a6386810b6509bcfbcc5ef90556210129287ad 100644
(file)
--- a/
drivers/net/eepro100.c
+++ b/
drivers/net/eepro100.c
@@
-240,23
+240,23
@@
static void eepro100_halt (struct eth_device *dev);
static inline int INW (struct eth_device *dev, u_long addr)
{
static inline int INW (struct eth_device *dev, u_long addr)
{
- return le16_to_cpu
(*(volatile u16 *) (addr +
dev->iobase));
+ return le16_to_cpu
(*(volatile u16 *)(addr + (u_long)
dev->iobase));
}
static inline void OUTW (struct eth_device *dev, int command, u_long addr)
{
}
static inline void OUTW (struct eth_device *dev, int command, u_long addr)
{
- *(volatile u16 *)
((addr + dev->iobase)) = cpu_to_le16
(command);
+ *(volatile u16 *)
((addr + (u_long)dev->iobase)) = cpu_to_le16
(command);
}
static inline void OUTL (struct eth_device *dev, int command, u_long addr)
{
}
static inline void OUTL (struct eth_device *dev, int command, u_long addr)
{
- *(volatile u32 *)
((addr + dev->iobase)) = cpu_to_le32
(command);
+ *(volatile u32 *)
((addr + (u_long)dev->iobase)) = cpu_to_le32
(command);
}
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
static inline int INL (struct eth_device *dev, u_long addr)
{
}
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
static inline int INL (struct eth_device *dev, u_long addr)
{
- return le32_to_cpu
(*(volatile u32 *) (addr +
dev->iobase));
+ return le32_to_cpu
(*(volatile u32 *)(addr + (u_long)
dev->iobase));
}
static int get_phyreg (struct eth_device *dev, unsigned char addr,
}
static int get_phyreg (struct eth_device *dev, unsigned char addr,