]> git.sur5r.net Git - u-boot/commitdiff
net: Declare physical address as phys_addr_t unsigned type
authorMichal Simek <michal.simek@xilinx.com>
Wed, 14 Jan 2015 15:00:39 +0000 (16:00 +0100)
committerTom Rini <trini@ti.com>
Wed, 14 Jan 2015 16:37:39 +0000 (11:37 -0500)
Use phys_addr_t instead of int for addresses.
Addresses can't be < 0.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/net.h

index 18d279ebe737da5ac87cf891d509b44efb1ece94..3da35fe981880500b9025ca813164c27a2aa8bdb 100644 (file)
@@ -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 *);