lkml.org 
[lkml]   [2008]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Fix pci_subsys_init() to have a return value
Date
Fix pci_subsys_init() to return a value (0) when it has finished.  All the
functions it calls currently return 0, so returning 0 here unconditionally
rather than gathering the results of its callees would seem reasonable.

Signed-off-by: David Howells <dhowells@redhat.com>
---

arch/x86/pci/legacy.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/arch/x86/pci/legacy.c b/arch/x86/pci/legacy.c
index 3c1d795..00e29c8 100644
--- a/arch/x86/pci/legacy.c
+++ b/arch/x86/pci/legacy.c
@@ -63,5 +63,6 @@ int __init pci_subsys_init(void)
pci_legacy_init();
pcibios_irq_init();
pcibios_init();
+ return 0;
}
subsys_initcall(pci_subsys_init);


\
 
 \ /
  Last update: 2008-07-11 11:49    [W:0.036 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site