mpc83xx: fix pcie build warning
authorKim Phillips <kim.phillips@freescale.com>
Wed, 22 Sep 2010 20:31:01 +0000 (15:31 -0500)
committerWolfgang Denk <wd@denx.de>
Thu, 23 Sep 2010 19:14:25 +0000 (21:14 +0200)
Configuring for MPC8308RDB board...
pcie.c: In function 'mpc83xx_pcie_register_hose':
pcie.c:143: warning: assignment makes pointer from integer without a cast

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
arch/powerpc/cpu/mpc83xx/pcie.c

index e70d19e20a02c25aff0b8e6a0026eea66d2db28e..09912bea3c58ce3ac36f7c47e17a8845d060362c 100644 (file)
@@ -140,7 +140,7 @@ static void mpc83xx_pcie_register_hose(int bus, struct pci_region *reg,
        hose->first_busno = pci_last_busno() + 1;
        hose->last_busno = 0xff;
 
-       hose->cfg_addr = mpc83xx_pcie_cfg_space[bus].base;
+       hose->cfg_addr = (unsigned int *)mpc83xx_pcie_cfg_space[bus].base;
 
        pci_set_ops(hose,
                        pcie_read_config_byte,