浏览代码

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: Michal Simek <michal.simek@xilinx.com>
Michal Simek 10 年之前
父节点
当前提交
16ae782722
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/net.h

+ 1 - 1
include/net.h

@@ -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 *);