diff options
Diffstat (limited to 'drivers/pci/hotplug/fakephp.c')
-rw-r--r-- | drivers/pci/hotplug/fakephp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/fakephp.c b/drivers/pci/hotplug/fakephp.c index 94b640146d44..7e9a827c2687 100644 --- a/drivers/pci/hotplug/fakephp.c +++ b/drivers/pci/hotplug/fakephp.c | |||
@@ -293,7 +293,7 @@ static int enable_slot(struct hotplug_slot *hotplug_slot) | |||
293 | /* mis-use enable_slot for rescanning of the pci bus */ | 293 | /* mis-use enable_slot for rescanning of the pci bus */ |
294 | cancel_work_sync(&pci_rescan_work); | 294 | cancel_work_sync(&pci_rescan_work); |
295 | queue_work(dummyphp_wq, &pci_rescan_work); | 295 | queue_work(dummyphp_wq, &pci_rescan_work); |
296 | return -ENODEV; | 296 | return 0; |
297 | } | 297 | } |
298 | 298 | ||
299 | /* find the hotplug_slot for the pci_dev */ | 299 | /* find the hotplug_slot for the pci_dev */ |
@@ -320,7 +320,7 @@ static int disable_slot(struct hotplug_slot *slot) | |||
320 | return -ENODEV; | 320 | return -ENODEV; |
321 | dslot = slot->private; | 321 | dslot = slot->private; |
322 | 322 | ||
323 | dbg("%s - physical_slot = %s\n", __FUNCTION__, slot->name); | 323 | dbg("%s - physical_slot = %s\n", __func__, slot->name); |
324 | 324 | ||
325 | /* don't disable bridged devices just yet, we can't handle them easily... */ | 325 | /* don't disable bridged devices just yet, we can't handle them easily... */ |
326 | if (dslot->dev->subordinate) { | 326 | if (dslot->dev->subordinate) { |