diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-07-16 22:22:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-08 17:57:23 -0400 |
commit | 982245f01734e9d5a3ab98b2b2e9761ae7719094 (patch) | |
tree | 96ff56ff327f9a50f91a46886967f349d9a0a5e7 /include/linux/pci.h | |
parent | 74d863ee8a9da2b0f31e0f977daf127807b2e9d2 (diff) |
[PATCH] PCI: remove CONFIG_PCI_NAMES
This patch removes CONFIG_PCI_NAMES.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 025bfc39771d..e7a228f2fdde 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -562,11 +562,6 @@ struct pci_dev { | |||
562 | struct bin_attribute *rom_attr; /* attribute descriptor for sysfs ROM entry */ | 562 | struct bin_attribute *rom_attr; /* attribute descriptor for sysfs ROM entry */ |
563 | int rom_attr_enabled; /* has display of the rom attribute been enabled? */ | 563 | int rom_attr_enabled; /* has display of the rom attribute been enabled? */ |
564 | struct bin_attribute *res_attr[DEVICE_COUNT_RESOURCE]; /* sysfs file for resources */ | 564 | struct bin_attribute *res_attr[DEVICE_COUNT_RESOURCE]; /* sysfs file for resources */ |
565 | #ifdef CONFIG_PCI_NAMES | ||
566 | #define PCI_NAME_SIZE 255 | ||
567 | #define PCI_NAME_HALF __stringify(43) /* less than half to handle slop */ | ||
568 | char pretty_name[PCI_NAME_SIZE]; /* pretty name for users to see */ | ||
569 | #endif | ||
570 | }; | 565 | }; |
571 | 566 | ||
572 | #define pci_dev_g(n) list_entry(n, struct pci_dev, global_list) | 567 | #define pci_dev_g(n) list_entry(n, struct pci_dev, global_list) |
@@ -749,8 +744,6 @@ int pci_scan_slot(struct pci_bus *bus, int devfn); | |||
749 | struct pci_dev * pci_scan_single_device(struct pci_bus *bus, int devfn); | 744 | struct pci_dev * pci_scan_single_device(struct pci_bus *bus, int devfn); |
750 | unsigned int pci_scan_child_bus(struct pci_bus *bus); | 745 | unsigned int pci_scan_child_bus(struct pci_bus *bus); |
751 | void pci_bus_add_device(struct pci_dev *dev); | 746 | void pci_bus_add_device(struct pci_dev *dev); |
752 | void pci_name_device(struct pci_dev *dev); | ||
753 | char *pci_class_name(u32 class); | ||
754 | void pci_read_bridge_bases(struct pci_bus *child); | 747 | void pci_read_bridge_bases(struct pci_bus *child); |
755 | struct resource *pci_find_parent_resource(const struct pci_dev *dev, struct resource *res); | 748 | struct resource *pci_find_parent_resource(const struct pci_dev *dev, struct resource *res); |
756 | int pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge); | 749 | int pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge); |
@@ -1025,13 +1018,6 @@ static inline char *pci_name(struct pci_dev *pdev) | |||
1025 | return pdev->dev.bus_id; | 1018 | return pdev->dev.bus_id; |
1026 | } | 1019 | } |
1027 | 1020 | ||
1028 | /* Some archs want to see the pretty pci name, so use this macro */ | ||
1029 | #ifdef CONFIG_PCI_NAMES | ||
1030 | #define pci_pretty_name(dev) ((dev)->pretty_name) | ||
1031 | #else | ||
1032 | #define pci_pretty_name(dev) "" | ||
1033 | #endif | ||
1034 | |||
1035 | 1021 | ||
1036 | /* Some archs don't want to expose struct resource to userland as-is | 1022 | /* Some archs don't want to expose struct resource to userland as-is |
1037 | * in sysfs and /proc | 1023 | * in sysfs and /proc |