[U-Boot] [PATCH] net: Declare physical address as phys_addr_t	unsigned type
    Michal Simek 
    michal.simek at xilinx.com
       
    Wed Jan 14 16:00:39 CET 2015
    
    
  
Use phys_addr_t instead of int for addresses.
Addresses can't be < 0.
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
 include/net.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net.h b/include/net.h
index 18d279ebe737..3da35fe98188 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 *);
--
1.8.2.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150114/7b023f8e/attachment.pgp>
    
    
More information about the U-Boot
mailing list