]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
evb64260: fix "cast to pointer from integer of different size" warnings
authorWolfgang Denk <wd@denx.de>
Tue, 9 Dec 2008 22:13:51 +0000 (23:13 +0100)
committerWolfgang Denk <wd@denx.de>
Tue, 9 Dec 2008 22:13:51 +0000 (23:13 +0100)
Signed-off-by: Wolfgang Denk <wd@denx.de>
board/evb64260/zuma_pbb.c
board/evb64260/zuma_pbb_mbox.c

index 296e4619c9a31c10692c691f2d24ecd54d257be6..1d03570937a65152c81d03975ba58534dc8e036a 100644 (file)
@@ -149,8 +149,10 @@ void zuma_init_pbb (void)
 
        pci_read_config_dword (dev, PCI_BASE_ADDRESS_0, &iobase);
 
-       zuma_pbb_reg =
-                       (PBB_DMA_REG_MAP *) (iobase & PCI_BASE_ADDRESS_MEM_MASK);
+       iobase &= PCI_BASE_ADDRESS_MEM_MASK;
+
+       zuma_pbb_reg = (PBB_DMA_REG_MAP *)iobase;
+
 
        if (!zuma_pbb_reg) {
                printf ("zuma pbb bar none! (hah hah, get it?)\n");
index 6f5df6e806dd75b91e190de213a19f88846dfd4e..8e381024b724ab9eba6375947486f61063a55523 100644 (file)
@@ -165,7 +165,9 @@ int zuma_mbox_init(void)
 
   pci_read_config_dword(zuma_mbox_dev.dev, PCI_BASE_ADDRESS_0, &iobase);
 
-  zuma_mbox_dev.sip = (PBB_DMA_REG_MAP *) (iobase & PCI_BASE_ADDRESS_MEM_MASK);
+  iobase &= PCI_BASE_ADDRESS_MEM_MASK;
+
+  zuma_mbox_dev.sip = (PBB_DMA_REG_MAP *)iobase;
 
   zuma_mbox_dev.sip->int_mask.word=0;