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:
parent
018bcfe8d4
commit
ff3f81b44c
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue