From: Michal Simek Date: Wed, 14 Jan 2015 15:00:39 +0000 (+0100) Subject: net: Declare physical address as phys_addr_t unsigned type X-Git-Tag: v2015.04-rc1~87 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=16ae7827226ce8b255245d1932e8069f00997a26;p=oweals%2Fu-boot.git 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 --- diff --git a/include/net.h b/include/net.h index 18d279ebe7..3da35fe981 100644 --- a/include/net.h +++ b/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 *);