aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/pci-common.c
diff options
context:
space:
mode:
authorTony Breeds <tony@bakeyournoodle.com>2007-07-17 21:03:55 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-18 13:17:39 -0400
commit4f3731da16678026a564b1d7ae218131e4af6810 (patch)
tree638a7a36aba3d287d8235c6a5c5832c0ba04cc2e /arch/powerpc/kernel/pci-common.c
parent8b4a40809e5330c9da5d20107d693d92d73b31dc (diff)
Fix compile failure in arch/powerpc/kernel/pci-common.c
This fixes the fallout from the recent powerpc merge (commit 489de30259e667d7bc47da9da44a0270b050cd97): 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: Tony Breeds <tony@bakeyournoodle.com> Tested-by: Bret Towe <magnade@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
-rw-r--r--arch/powerpc/kernel/pci-common.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index faf5ef3e90d0..94b4a028232a 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -156,11 +156,14 @@ static DEVICE_ATTR(devspec, S_IRUGO, pci_show_devspec, NULL);
156#endif /* CONFIG_PPC_OF */ 156#endif /* CONFIG_PPC_OF */
157 157
158/* Add sysfs properties */ 158/* Add sysfs properties */
159void pcibios_add_platform_entries(struct pci_dev *pdev) 159int pcibios_add_platform_entries(struct pci_dev *pdev)
160{ 160{
161#ifdef CONFIG_PPC_OF 161#ifdef CONFIG_PPC_OF
162 device_create_file(&pdev->dev, &dev_attr_devspec); 162 return device_create_file(&pdev->dev, &dev_attr_devspec);
163#else
164 return 0;
163#endif /* CONFIG_PPC_OF */ 165#endif /* CONFIG_PPC_OF */
166
164} 167}
165 168
166char __init *pcibios_setup(char *str) 169char __init *pcibios_setup(char *str)