提交 4f3731da 编写于 作者: T Tony Breeds 提交者: Linus Torvalds

Fix compile failure in arch/powerpc/kernel/pci-common.c

This fixes the fallout from the recent powerpc merge (commit
489de302):

   CC      arch/powerpc/kernel/pci-common.o
  arch/powerpc/kernel/pci-common.c:160: error: conflicting types for 'pcibios_add_platform_entries'
  include/linux/pci.h:889: error: previous declaration of 'pcibios_add_platform_entries' was here
Signed-off-by: NTony Breeds <tony@bakeyournoodle.com>
Tested-by: NBret Towe <magnade@gmail.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 8b4a4080
...@@ -156,11 +156,14 @@ static DEVICE_ATTR(devspec, S_IRUGO, pci_show_devspec, NULL); ...@@ -156,11 +156,14 @@ static DEVICE_ATTR(devspec, S_IRUGO, pci_show_devspec, NULL);
#endif /* CONFIG_PPC_OF */ #endif /* CONFIG_PPC_OF */
/* Add sysfs properties */ /* Add sysfs properties */
void pcibios_add_platform_entries(struct pci_dev *pdev) int pcibios_add_platform_entries(struct pci_dev *pdev)
{ {
#ifdef CONFIG_PPC_OF #ifdef CONFIG_PPC_OF
device_create_file(&pdev->dev, &dev_attr_devspec); return device_create_file(&pdev->dev, &dev_attr_devspec);
#else
return 0;
#endif /* CONFIG_PPC_OF */ #endif /* CONFIG_PPC_OF */
} }
char __init *pcibios_setup(char *str) char __init *pcibios_setup(char *str)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册