diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-12-09 10:27:33 -0600 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-12-09 21:15:03 +0100 |
commit | 4c253fdb2a175ea3472c38a1455a16faa58e81f0 (patch) | |
tree | c2a1b9ea159182a0c1c18f66feff8fd7fb7340a5 /drivers/pci | |
parent | 13d36ec849785453953d00220b2c7dc66644a3c2 (diff) | |
download | u-boot-imx-4c253fdb2a175ea3472c38a1455a16faa58e81f0.zip u-boot-imx-4c253fdb2a175ea3472c38a1455a16faa58e81f0.tar.gz u-boot-imx-4c253fdb2a175ea3472c38a1455a16faa58e81f0.tar.bz2 |
drivers/fsl_pci_init: Fix compile warning
fsl_pci_init.c: In function 'fsl_pci_setup_inbound_windows':
fsl_pci_init.c:122: warning: comparison is always true due to limited range of data type
The check only makes sense if we are CONFIG_PHYS_64BIT
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/fsl_pci_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c index e57acba..1db42fd 100644 --- a/drivers/pci/fsl_pci_init.c +++ b/drivers/pci/fsl_pci_init.c @@ -119,9 +119,11 @@ int fsl_pci_setup_inbound_windows(struct pci_region *r) } #endif +#ifdef CONFIG_PHYS_64BIT if (sz && (((u64)gd->ram_size) < (1ull << 32))) printf("Was not able to map all of memory via " "inbound windows -- %lld remaining\n", sz); +#endif return r - rgn_base; } |