diff options
author | Phil Sutter <phil@nwl.cc> | 2015-12-25 14:41:17 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2016-01-14 14:08:59 +0100 |
commit | 11131467933cd53cd244631b45df491723858449 (patch) | |
tree | 53099019fe93395d8f07e9050bf37024ad68439e /drivers | |
parent | f4db6c976cf8f414c555ccbd355de787b2706be3 (diff) | |
download | u-boot-imx-11131467933cd53cd244631b45df491723858449.zip u-boot-imx-11131467933cd53cd244631b45df491723858449.tar.gz u-boot-imx-11131467933cd53cd244631b45df491723858449.tar.bz2 |
drivers/pci: Fix for debug builds without CONFIG_PCI_ENUM_ONLY
The debug printing references bar_res, which exists only if
CONFIG_PCI_ENUM_ONLY is not defined. Therefore move it into the ifdef'd
area.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Stefan Roese <sr@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/pci_auto_old.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci_auto_old.c b/drivers/pci/pci_auto_old.c index 9126f78..edc9a7b 100644 --- a/drivers/pci/pci_auto_old.c +++ b/drivers/pci/pci_auto_old.c @@ -101,11 +101,11 @@ void pciauto_setup_device(struct pci_controller *hose, bar_res = prefetch; else bar_res = mem; -#endif debug("PCI Autoconfig: BAR %d, %s, size=0x%llx, ", bar_nr, bar_res == prefetch ? "Prf" : "Mem", (unsigned long long)bar_size); +#endif } #ifndef CONFIG_PCI_ENUM_ONLY |