Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4f3731da16678026a564b1d7ae218131e4af6810
Commit:     4f3731da16678026a564b1d7ae218131e4af6810
Parent:     8b4a40809e5330c9da5d20107d693d92d73b31dc
Author:     Tony Breeds <[EMAIL PROTECTED]>
AuthorDate: Wed Jul 18 11:03:55 2007 +1000
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Jul 18 10:17:39 2007 -0700

    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 <[EMAIL PROTECTED]>
    Tested-by: Bret Towe <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 arch/powerpc/kernel/pci-common.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index faf5ef3..94b4a02 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);
 #endif /* CONFIG_PPC_OF */
 
 /* 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
-       device_create_file(&pdev->dev, &dev_attr_devspec);
+       return device_create_file(&pdev->dev, &dev_attr_devspec);
+#else
+       return 0;
 #endif /* CONFIG_PPC_OF */
+
 }
 
 char __init *pcibios_setup(char *str)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to