|
@@ -982,7 +982,7 @@ int __exit eeh_ops_unregister(const char *name)
|
|
* Even if force-off is set, the EEH hardware is still enabled, so that
|
|
* Even if force-off is set, the EEH hardware is still enabled, so that
|
|
* newer systems can boot.
|
|
* newer systems can boot.
|
|
*/
|
|
*/
|
|
-void __init eeh_init(void)
|
|
|
|
|
|
+static int __init eeh_init(void)
|
|
{
|
|
{
|
|
struct pci_controller *hose, *tmp;
|
|
struct pci_controller *hose, *tmp;
|
|
struct device_node *phb;
|
|
struct device_node *phb;
|
|
@@ -992,11 +992,11 @@ void __init eeh_init(void)
|
|
if (!eeh_ops) {
|
|
if (!eeh_ops) {
|
|
pr_warning("%s: Platform EEH operation not found\n",
|
|
pr_warning("%s: Platform EEH operation not found\n",
|
|
__func__);
|
|
__func__);
|
|
- return;
|
|
|
|
|
|
+ return -EEXIST;
|
|
} else if ((ret = eeh_ops->init())) {
|
|
} else if ((ret = eeh_ops->init())) {
|
|
pr_warning("%s: Failed to call platform init function (%d)\n",
|
|
pr_warning("%s: Failed to call platform init function (%d)\n",
|
|
__func__, ret);
|
|
__func__, ret);
|
|
- return;
|
|
|
|
|
|
+ return ret;
|
|
}
|
|
}
|
|
|
|
|
|
raw_spin_lock_init(&confirm_error_lock);
|
|
raw_spin_lock_init(&confirm_error_lock);
|
|
@@ -1011,8 +1011,12 @@ void __init eeh_init(void)
|
|
printk(KERN_INFO "EEH: PCI Enhanced I/O Error Handling Enabled\n");
|
|
printk(KERN_INFO "EEH: PCI Enhanced I/O Error Handling Enabled\n");
|
|
else
|
|
else
|
|
printk(KERN_WARNING "EEH: No capable adapters found\n");
|
|
printk(KERN_WARNING "EEH: No capable adapters found\n");
|
|
|
|
+
|
|
|
|
+ return ret;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+core_initcall_sync(eeh_init);
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* eeh_add_device_early - Enable EEH for the indicated device_node
|
|
* eeh_add_device_early - Enable EEH for the indicated device_node
|
|
* @dn: device node for which to set up EEH
|
|
* @dn: device node for which to set up EEH
|