PCI: replace remaining __FUNCTION__ occurrences
[firefly-linux-kernel-4.4.55.git] / drivers / pci / hotplug / fakephp.c
index 94b640146d4456b4aa0b96b1022f7efcfadbd256..7e9a827c268799ed4c51b84b829fca03a3dfe5a7 100644 (file)
@@ -293,7 +293,7 @@ static int enable_slot(struct hotplug_slot *hotplug_slot)
        /* mis-use enable_slot for rescanning of the pci bus */
        cancel_work_sync(&pci_rescan_work);
        queue_work(dummyphp_wq, &pci_rescan_work);
-       return -ENODEV;
+       return 0;
 }
 
 /* find the hotplug_slot for the pci_dev */
@@ -320,7 +320,7 @@ static int disable_slot(struct hotplug_slot *slot)
                return -ENODEV;
        dslot = slot->private;
 
-       dbg("%s - physical_slot = %s\n", __FUNCTION__, slot->name);
+       dbg("%s - physical_slot = %s\n", __func__, slot->name);
 
        /* don't disable bridged devices just yet, we can't handle them easily... */
        if (dslot->dev->subordinate) {