diff options
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index d9476c1fc959..24d342e91790 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -201,26 +201,6 @@ struct pci_controller* pci_find_hose_for_OF_device(struct device_node* node) | |||
201 | return NULL; | 201 | return NULL; |
202 | } | 202 | } |
203 | 203 | ||
204 | static ssize_t pci_show_devspec(struct device *dev, | ||
205 | struct device_attribute *attr, char *buf) | ||
206 | { | ||
207 | struct pci_dev *pdev; | ||
208 | struct device_node *np; | ||
209 | |||
210 | pdev = to_pci_dev (dev); | ||
211 | np = pci_device_to_OF_node(pdev); | ||
212 | if (np == NULL || np->full_name == NULL) | ||
213 | return 0; | ||
214 | return sprintf(buf, "%s", np->full_name); | ||
215 | } | ||
216 | static DEVICE_ATTR(devspec, S_IRUGO, pci_show_devspec, NULL); | ||
217 | |||
218 | /* Add sysfs properties */ | ||
219 | int pcibios_add_platform_entries(struct pci_dev *pdev) | ||
220 | { | ||
221 | return device_create_file(&pdev->dev, &dev_attr_devspec); | ||
222 | } | ||
223 | |||
224 | /* | 204 | /* |
225 | * Reads the interrupt pin to determine if interrupt is use by card. | 205 | * Reads the interrupt pin to determine if interrupt is use by card. |
226 | * If the interrupt is used, then gets the interrupt line from the | 206 | * If the interrupt is used, then gets the interrupt line from the |