diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2003-08-20 20:07:11 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2003-08-20 20:07:11 -0700 |
| commit | c8480a1881f8a0422603ee56a95e079709d678a6 (patch) | |
| tree | fde9485bd762c2f2e8ebfaa34df034d5db57ed0c /include/linux | |
| parent | de9af88e9c34a553571a53ade1fc8c938d313058 (diff) | |
PCI: added the pci_pretty_name() macro to pci.h as 2 arches already had it.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pci.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 287f8ebc4bf2..3c4fc6c62773 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -842,6 +842,13 @@ static inline char *pci_name(struct pci_dev *pdev) return pdev->dev.bus_id; } +/* Some archs want to see the pretty pci name, so use this macro */ +#ifdef CONFIG_PCI_NAMES +#define pci_pretty_name(dev) ((dev)->pretty_name) +#else +#define pci_pretty_name(dev) "" +#endif + /* * The world is not perfect and supplies us with broken PCI devices. * For at least a part of these bugs we need a work-around, so both |
