diff options
author | Wolfgang Denk <wd@denx.de> | 2008-12-09 23:13:51 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-12-09 23:13:51 +0100 |
commit | 1113cb764b3da256ef8a1f9539f4efbe221ff3c4 (patch) | |
tree | 8577cd13f89f775b56a9a15b84c8439b3fbab147 /board/evb64260/zuma_pbb.c | |
parent | f68a0c91496b75156006ef43fd87d37ee28bc569 (diff) | |
download | u-boot-imx-1113cb764b3da256ef8a1f9539f4efbe221ff3c4.zip u-boot-imx-1113cb764b3da256ef8a1f9539f4efbe221ff3c4.tar.gz u-boot-imx-1113cb764b3da256ef8a1f9539f4efbe221ff3c4.tar.bz2 |
evb64260: fix "cast to pointer from integer of different size" warnings
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/evb64260/zuma_pbb.c')
-rw-r--r-- | board/evb64260/zuma_pbb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/board/evb64260/zuma_pbb.c b/board/evb64260/zuma_pbb.c index 296e461..1d03570 100644 --- a/board/evb64260/zuma_pbb.c +++ b/board/evb64260/zuma_pbb.c @@ -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"); |