pci: Make use of pci_show without #ifdef

This will make code that use it not too crowded with #ifdef #endif

Change-Id: Iec0fa662445b1cefdc7c64d9483e1ae483106a90
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2015-08-25 21:45:14 +03:00 committed by Anas Nashif
commit ff3f81b44c
2 changed files with 3 additions and 2 deletions

View file

@ -354,9 +354,8 @@ static inline int spi_intel_setup(struct device *dev)
pci_enable_regs(&spi_intel_pci); pci_enable_regs(&spi_intel_pci);
#ifdef CONFIG_PCI_DEBUG
pci_show(&spi_intel_pci); pci_show(&spi_intel_pci);
#endif
return 1; return 1;
} }
#else #else

View file

@ -81,6 +81,8 @@ void pci_enable_regs(struct pci_dev_info *dev_info);
#ifdef CONFIG_PCI_DEBUG #ifdef CONFIG_PCI_DEBUG
extern void pci_show(struct pci_dev_info *dev_info); extern void pci_show(struct pci_dev_info *dev_info);
#else
#define pci_show(__unused__) {;}
#endif #endif
#endif /* _PCI_H_ */ #endif /* _PCI_H_ */