aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/rpaphp_core.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-03-03 22:09:46 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-04-21 00:47:09 -0400
commit66bef8c059015ba2b36bb5759080336feb01e680 (patch)
tree9060b134ba07e052bf40e0fbe641dfaa86bcbd9d /drivers/pci/hotplug/rpaphp_core.c
parentca99eb8c2d56bdfff0161388b81e641f4e039b3f (diff)
PCI: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/rpaphp_core.c')
-rw-r--r--drivers/pci/hotplug/rpaphp_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/rpaphp_core.c b/drivers/pci/hotplug/rpaphp_core.c
index 58f1a992770..1f84f402acd 100644
--- a/drivers/pci/hotplug/rpaphp_core.c
+++ b/drivers/pci/hotplug/rpaphp_core.c
@@ -317,7 +317,7 @@ int rpaphp_add_slot(struct device_node *dn)
317 if (!is_php_dn(dn, &indexes, &names, &types, &power_domains)) 317 if (!is_php_dn(dn, &indexes, &names, &types, &power_domains))
318 return 0; 318 return 0;
319 319
320 dbg("Entry %s: dn->full_name=%s\n", __FUNCTION__, dn->full_name); 320 dbg("Entry %s: dn->full_name=%s\n", __func__, dn->full_name);
321 321
322 /* register PCI devices */ 322 /* register PCI devices */
323 name = (char *) &names[1]; 323 name = (char *) &names[1];
@@ -343,7 +343,7 @@ int rpaphp_add_slot(struct device_node *dn)
343 name += strlen(name) + 1; 343 name += strlen(name) + 1;
344 type += strlen(type) + 1; 344 type += strlen(type) + 1;
345 } 345 }
346 dbg("%s - Exit: rc[%d]\n", __FUNCTION__, retval); 346 dbg("%s - Exit: rc[%d]\n", __func__, retval);
347 347
348 /* XXX FIXME: reports a failure only if last entry in loop failed */ 348 /* XXX FIXME: reports a failure only if last entry in loop failed */
349 return retval; 349 return retval;
@@ -404,7 +404,7 @@ static int enable_slot(struct hotplug_slot *hotplug_slot)
404 } else if (state == EMPTY) { 404 } else if (state == EMPTY) {
405 slot->state = EMPTY; 405 slot->state = EMPTY;
406 } else { 406 } else {
407 err("%s: slot[%s] is in invalid state\n", __FUNCTION__, slot->name); 407 err("%s: slot[%s] is in invalid state\n", __func__, slot->name);
408 slot->state = NOT_VALID; 408 slot->state = NOT_VALID;
409 return -EINVAL; 409 return -EINVAL;
410 } 410 }