提交 16ae7827 编写于 作者: M Michal Simek 提交者: Tom Rini

net: Declare physical address as phys_addr_t unsigned type

Use phys_addr_t instead of int for addresses.
Addresses can't be < 0.
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
上级 f1075aed
......@@ -81,7 +81,7 @@ enum eth_state_t {
struct eth_device {
char name[16];
unsigned char enetaddr[6];
int iobase;
phys_addr_t iobase;
int state;
int (*init) (struct eth_device *, bd_t *);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册