aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/hotplug/rpaphp_core.c3
-rw-r--r--drivers/pci/hotplug/rpaphp_pci.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/rpaphp_core.c b/drivers/pci/hotplug/rpaphp_core.c
index e9c157d30e82..d8e5f9fd357d 100644
--- a/drivers/pci/hotplug/rpaphp_core.c
+++ b/drivers/pci/hotplug/rpaphp_core.c
@@ -319,6 +319,9 @@ int rpaphp_add_slot(struct device_node *dn)
319 indexes[i + 1], name, type); 319 indexes[i + 1], name, type);
320 320
321 retval = rpaphp_register_pci_slot(slot); 321 retval = rpaphp_register_pci_slot(slot);
322 if (!retval)
323 retval = rpaphp_register_slot(slot);
324
322 if (retval) 325 if (retval)
323 dealloc_slot_struct(slot); 326 dealloc_slot_struct(slot);
324 327
diff --git a/drivers/pci/hotplug/rpaphp_pci.c b/drivers/pci/hotplug/rpaphp_pci.c
index 6271be8b155e..2e297b9ffa75 100644
--- a/drivers/pci/hotplug/rpaphp_pci.c
+++ b/drivers/pci/hotplug/rpaphp_pci.c
@@ -136,6 +136,6 @@ int rpaphp_register_pci_slot(struct slot *slot)
136 } 136 }
137 } 137 }
138 138
139 return rpaphp_register_slot(slot); 139 return 0;
140} 140}
141 141