diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-03-03 22:09:46 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-21 00:47:09 -0400 |
commit | 66bef8c059015ba2b36bb5759080336feb01e680 (patch) | |
tree | 9060b134ba07e052bf40e0fbe641dfaa86bcbd9d /drivers/pci/hotplug/acpiphp_ibm.c | |
parent | ca99eb8c2d56bdfff0161388b81e641f4e039b3f (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/acpiphp_ibm.c')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_ibm.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/pci/hotplug/acpiphp_ibm.c b/drivers/pci/hotplug/acpiphp_ibm.c index b0a22b92717e..ede9051fdb5d 100644 --- a/drivers/pci/hotplug/acpiphp_ibm.c +++ b/drivers/pci/hotplug/acpiphp_ibm.c | |||
@@ -186,7 +186,7 @@ static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status) | |||
186 | 186 | ||
187 | ibm_slot = ibm_slot_from_id(hpslot_to_sun(slot)); | 187 | ibm_slot = ibm_slot_from_id(hpslot_to_sun(slot)); |
188 | 188 | ||
189 | dbg("%s: set slot %d (%d) attention status to %d\n", __FUNCTION__, | 189 | dbg("%s: set slot %d (%d) attention status to %d\n", __func__, |
190 | ibm_slot->slot.slot_num, ibm_slot->slot.slot_id, | 190 | ibm_slot->slot.slot_num, ibm_slot->slot.slot_id, |
191 | (status ? 1 : 0)); | 191 | (status ? 1 : 0)); |
192 | 192 | ||
@@ -231,7 +231,7 @@ static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status) | |||
231 | else | 231 | else |
232 | *status = 0; | 232 | *status = 0; |
233 | 233 | ||
234 | dbg("%s: get slot %d (%d) attention status is %d\n", __FUNCTION__, | 234 | dbg("%s: get slot %d (%d) attention status is %d\n", __func__, |
235 | ibm_slot->slot.slot_num, ibm_slot->slot.slot_id, | 235 | ibm_slot->slot.slot_num, ibm_slot->slot.slot_id, |
236 | *status); | 236 | *status); |
237 | 237 | ||
@@ -263,10 +263,10 @@ static void ibm_handle_events(acpi_handle handle, u32 event, void *context) | |||
263 | u8 subevent = event & 0xf0; | 263 | u8 subevent = event & 0xf0; |
264 | struct notification *note = context; | 264 | struct notification *note = context; |
265 | 265 | ||
266 | dbg("%s: Received notification %02x\n", __FUNCTION__, event); | 266 | dbg("%s: Received notification %02x\n", __func__, event); |
267 | 267 | ||
268 | if (subevent == 0x80) { | 268 | if (subevent == 0x80) { |
269 | dbg("%s: generationg bus event\n", __FUNCTION__); | 269 | dbg("%s: generationg bus event\n", __func__); |
270 | acpi_bus_generate_proc_event(note->device, note->event, detail); | 270 | acpi_bus_generate_proc_event(note->device, note->event, detail); |
271 | acpi_bus_generate_netlink_event(note->device->pnp.device_class, | 271 | acpi_bus_generate_netlink_event(note->device->pnp.device_class, |
272 | note->device->dev.bus_id, | 272 | note->device->dev.bus_id, |
@@ -299,7 +299,7 @@ static int ibm_get_table_from_acpi(char **bufp) | |||
299 | 299 | ||
300 | status = acpi_evaluate_object(ibm_acpi_handle, "APCI", NULL, &buffer); | 300 | status = acpi_evaluate_object(ibm_acpi_handle, "APCI", NULL, &buffer); |
301 | if (ACPI_FAILURE(status)) { | 301 | if (ACPI_FAILURE(status)) { |
302 | err("%s: APCI evaluation failed\n", __FUNCTION__); | 302 | err("%s: APCI evaluation failed\n", __func__); |
303 | return -ENODEV; | 303 | return -ENODEV; |
304 | } | 304 | } |
305 | 305 | ||
@@ -307,13 +307,13 @@ static int ibm_get_table_from_acpi(char **bufp) | |||
307 | if (!(package) || | 307 | if (!(package) || |
308 | (package->type != ACPI_TYPE_PACKAGE) || | 308 | (package->type != ACPI_TYPE_PACKAGE) || |
309 | !(package->package.elements)) { | 309 | !(package->package.elements)) { |
310 | err("%s: Invalid APCI object\n", __FUNCTION__); | 310 | err("%s: Invalid APCI object\n", __func__); |
311 | goto read_table_done; | 311 | goto read_table_done; |
312 | } | 312 | } |
313 | 313 | ||
314 | for(size = 0, i = 0; i < package->package.count; i++) { | 314 | for(size = 0, i = 0; i < package->package.count; i++) { |
315 | if (package->package.elements[i].type != ACPI_TYPE_BUFFER) { | 315 | if (package->package.elements[i].type != ACPI_TYPE_BUFFER) { |
316 | err("%s: Invalid APCI element %d\n", __FUNCTION__, i); | 316 | err("%s: Invalid APCI element %d\n", __func__, i); |
317 | goto read_table_done; | 317 | goto read_table_done; |
318 | } | 318 | } |
319 | size += package->package.elements[i].buffer.length; | 319 | size += package->package.elements[i].buffer.length; |
@@ -324,7 +324,7 @@ static int ibm_get_table_from_acpi(char **bufp) | |||
324 | 324 | ||
325 | lbuf = kzalloc(size, GFP_KERNEL); | 325 | lbuf = kzalloc(size, GFP_KERNEL); |
326 | dbg("%s: element count: %i, ASL table size: %i, &table = 0x%p\n", | 326 | dbg("%s: element count: %i, ASL table size: %i, &table = 0x%p\n", |
327 | __FUNCTION__, package->package.count, size, lbuf); | 327 | __func__, package->package.count, size, lbuf); |
328 | 328 | ||
329 | if (lbuf) { | 329 | if (lbuf) { |
330 | *bufp = lbuf; | 330 | *bufp = lbuf; |
@@ -368,7 +368,7 @@ static ssize_t ibm_read_apci_table(struct kobject *kobj, | |||
368 | int bytes_read = -EINVAL; | 368 | int bytes_read = -EINVAL; |
369 | char *table = NULL; | 369 | char *table = NULL; |
370 | 370 | ||
371 | dbg("%s: pos = %d, size = %zd\n", __FUNCTION__, (int)pos, size); | 371 | dbg("%s: pos = %d, size = %zd\n", __func__, (int)pos, size); |
372 | 372 | ||
373 | if (pos == 0) { | 373 | if (pos == 0) { |
374 | bytes_read = ibm_get_table_from_acpi(&table); | 374 | bytes_read = ibm_get_table_from_acpi(&table); |
@@ -402,7 +402,7 @@ static acpi_status __init ibm_find_acpi_device(acpi_handle handle, | |||
402 | status = acpi_get_object_info(handle, &info_buffer); | 402 | status = acpi_get_object_info(handle, &info_buffer); |
403 | if (ACPI_FAILURE(status)) { | 403 | if (ACPI_FAILURE(status)) { |
404 | err("%s: Failed to get device information status=0x%x\n", | 404 | err("%s: Failed to get device information status=0x%x\n", |
405 | __FUNCTION__, status); | 405 | __func__, status); |
406 | return retval; | 406 | return retval; |
407 | } | 407 | } |
408 | info = info_buffer.pointer; | 408 | info = info_buffer.pointer; |
@@ -432,18 +432,18 @@ static int __init ibm_acpiphp_init(void) | |||
432 | struct acpi_device *device; | 432 | struct acpi_device *device; |
433 | struct kobject *sysdir = &pci_hotplug_slots_kset->kobj; | 433 | struct kobject *sysdir = &pci_hotplug_slots_kset->kobj; |
434 | 434 | ||
435 | dbg("%s\n", __FUNCTION__); | 435 | dbg("%s\n", __func__); |
436 | 436 | ||
437 | if (acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, | 437 | if (acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, |
438 | ACPI_UINT32_MAX, ibm_find_acpi_device, | 438 | ACPI_UINT32_MAX, ibm_find_acpi_device, |
439 | &ibm_acpi_handle, NULL) != FOUND_APCI) { | 439 | &ibm_acpi_handle, NULL) != FOUND_APCI) { |
440 | err("%s: acpi_walk_namespace failed\n", __FUNCTION__); | 440 | err("%s: acpi_walk_namespace failed\n", __func__); |
441 | retval = -ENODEV; | 441 | retval = -ENODEV; |
442 | goto init_return; | 442 | goto init_return; |
443 | } | 443 | } |
444 | dbg("%s: found IBM aPCI device\n", __FUNCTION__); | 444 | dbg("%s: found IBM aPCI device\n", __func__); |
445 | if (acpi_bus_get_device(ibm_acpi_handle, &device)) { | 445 | if (acpi_bus_get_device(ibm_acpi_handle, &device)) { |
446 | err("%s: acpi_bus_get_device failed\n", __FUNCTION__); | 446 | err("%s: acpi_bus_get_device failed\n", __func__); |
447 | retval = -ENODEV; | 447 | retval = -ENODEV; |
448 | goto init_return; | 448 | goto init_return; |
449 | } | 449 | } |
@@ -458,7 +458,7 @@ static int __init ibm_acpiphp_init(void) | |||
458 | &ibm_note); | 458 | &ibm_note); |
459 | if (ACPI_FAILURE(status)) { | 459 | if (ACPI_FAILURE(status)) { |
460 | err("%s: Failed to register notification handler\n", | 460 | err("%s: Failed to register notification handler\n", |
461 | __FUNCTION__); | 461 | __func__); |
462 | retval = -EBUSY; | 462 | retval = -EBUSY; |
463 | goto init_cleanup; | 463 | goto init_cleanup; |
464 | } | 464 | } |
@@ -479,17 +479,17 @@ static void __exit ibm_acpiphp_exit(void) | |||
479 | acpi_status status; | 479 | acpi_status status; |
480 | struct kobject *sysdir = &pci_hotplug_slots_kset->kobj; | 480 | struct kobject *sysdir = &pci_hotplug_slots_kset->kobj; |
481 | 481 | ||
482 | dbg("%s\n", __FUNCTION__); | 482 | dbg("%s\n", __func__); |
483 | 483 | ||
484 | if (acpiphp_unregister_attention(&ibm_attention_info)) | 484 | if (acpiphp_unregister_attention(&ibm_attention_info)) |
485 | err("%s: attention info deregistration failed", __FUNCTION__); | 485 | err("%s: attention info deregistration failed", __func__); |
486 | 486 | ||
487 | status = acpi_remove_notify_handler( | 487 | status = acpi_remove_notify_handler( |
488 | ibm_acpi_handle, | 488 | ibm_acpi_handle, |
489 | ACPI_DEVICE_NOTIFY, | 489 | ACPI_DEVICE_NOTIFY, |
490 | ibm_handle_events); | 490 | ibm_handle_events); |
491 | if (ACPI_FAILURE(status)) | 491 | if (ACPI_FAILURE(status)) |
492 | err("%s: Notification handler removal failed\n", __FUNCTION__); | 492 | err("%s: Notification handler removal failed\n", __func__); |
493 | /* remove the /sys entries */ | 493 | /* remove the /sys entries */ |
494 | sysfs_remove_bin_file(sysdir, &ibm_apci_table_attr); | 494 | sysfs_remove_bin_file(sysdir, &ibm_apci_table_attr); |
495 | } | 495 | } |