git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
drivers
/
pci
/
hotplug
/
rpaphp_core.c
diff --git
a/drivers/pci/hotplug/rpaphp_core.c
b/drivers/pci/hotplug/rpaphp_core.c
index
076bd6d
..
6e79f56
100644
(file)
--- a/
drivers/pci/hotplug/rpaphp_core.c
+++ b/
drivers/pci/hotplug/rpaphp_core.c
@@
-22,6
+22,7
@@
* Send feedback to <lxie@us.ibm.com>
*
*/
* Send feedback to <lxie@us.ibm.com>
*
*/
+#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
@@
-359,6
+360,9
@@
static int __init rpaphp_init(void)
while ((dn = of_find_node_by_type(dn, "pci")))
rpaphp_add_slot(dn);
while ((dn = of_find_node_by_type(dn, "pci")))
rpaphp_add_slot(dn);
+ if (!num_slots)
+ return -ENODEV;
+
return 0;
}
return 0;
}