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_glue.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_glue.c')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index 5e50008d1181..648596d469f6 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -352,7 +352,7 @@ static void decode_hpp(struct acpiphp_bridge *bridge) | |||
352 | /* use default numbers */ | 352 | /* use default numbers */ |
353 | printk(KERN_WARNING | 353 | printk(KERN_WARNING |
354 | "%s: Could not get hotplug parameters. Use defaults\n", | 354 | "%s: Could not get hotplug parameters. Use defaults\n", |
355 | __FUNCTION__); | 355 | __func__); |
356 | bridge->hpp.t0 = &bridge->hpp.type0_data; | 356 | bridge->hpp.t0 = &bridge->hpp.type0_data; |
357 | bridge->hpp.t0->revision = 0; | 357 | bridge->hpp.t0->revision = 0; |
358 | bridge->hpp.t0->cache_line_size = 0x10; | 358 | bridge->hpp.t0->cache_line_size = 0x10; |
@@ -534,7 +534,7 @@ find_p2p_bridge(acpi_handle handle, u32 lvl, void *context, void **rv) | |||
534 | 534 | ||
535 | status = acpi_evaluate_integer(handle, "_ADR", NULL, &tmp); | 535 | status = acpi_evaluate_integer(handle, "_ADR", NULL, &tmp); |
536 | if (ACPI_FAILURE(status)) { | 536 | if (ACPI_FAILURE(status)) { |
537 | dbg("%s: _ADR evaluation failure\n", __FUNCTION__); | 537 | dbg("%s: _ADR evaluation failure\n", __func__); |
538 | return AE_OK; | 538 | return AE_OK; |
539 | } | 539 | } |
540 | 540 | ||
@@ -578,7 +578,7 @@ static int add_bridge(acpi_handle handle) | |||
578 | if (ACPI_SUCCESS(status)) { | 578 | if (ACPI_SUCCESS(status)) { |
579 | status = acpi_evaluate_integer(handle, "_STA", NULL, &tmp); | 579 | status = acpi_evaluate_integer(handle, "_STA", NULL, &tmp); |
580 | if (ACPI_FAILURE(status)) { | 580 | if (ACPI_FAILURE(status)) { |
581 | dbg("%s: _STA evaluation failure\n", __FUNCTION__); | 581 | dbg("%s: _STA evaluation failure\n", __func__); |
582 | return 0; | 582 | return 0; |
583 | } | 583 | } |
584 | if ((tmp & ACPI_STA_FUNCTIONING) == 0) | 584 | if ((tmp & ACPI_STA_FUNCTIONING) == 0) |
@@ -928,10 +928,10 @@ static int power_on_slot(struct acpiphp_slot *slot) | |||
928 | func = list_entry(l, struct acpiphp_func, sibling); | 928 | func = list_entry(l, struct acpiphp_func, sibling); |
929 | 929 | ||
930 | if (func->flags & FUNC_HAS_PS0) { | 930 | if (func->flags & FUNC_HAS_PS0) { |
931 | dbg("%s: executing _PS0\n", __FUNCTION__); | 931 | dbg("%s: executing _PS0\n", __func__); |
932 | status = acpi_evaluate_object(func->handle, "_PS0", NULL, NULL); | 932 | status = acpi_evaluate_object(func->handle, "_PS0", NULL, NULL); |
933 | if (ACPI_FAILURE(status)) { | 933 | if (ACPI_FAILURE(status)) { |
934 | warn("%s: _PS0 failed\n", __FUNCTION__); | 934 | warn("%s: _PS0 failed\n", __func__); |
935 | retval = -1; | 935 | retval = -1; |
936 | goto err_exit; | 936 | goto err_exit; |
937 | } else | 937 | } else |
@@ -966,7 +966,7 @@ static int power_off_slot(struct acpiphp_slot *slot) | |||
966 | if (func->flags & FUNC_HAS_PS3) { | 966 | if (func->flags & FUNC_HAS_PS3) { |
967 | status = acpi_evaluate_object(func->handle, "_PS3", NULL, NULL); | 967 | status = acpi_evaluate_object(func->handle, "_PS3", NULL, NULL); |
968 | if (ACPI_FAILURE(status)) { | 968 | if (ACPI_FAILURE(status)) { |
969 | warn("%s: _PS3 failed\n", __FUNCTION__); | 969 | warn("%s: _PS3 failed\n", __func__); |
970 | retval = -1; | 970 | retval = -1; |
971 | goto err_exit; | 971 | goto err_exit; |
972 | } else | 972 | } else |
@@ -1300,7 +1300,7 @@ int acpiphp_eject_slot(struct acpiphp_slot *slot) | |||
1300 | 1300 | ||
1301 | status = acpi_evaluate_object(func->handle, "_EJ0", &arg_list, NULL); | 1301 | status = acpi_evaluate_object(func->handle, "_EJ0", &arg_list, NULL); |
1302 | if (ACPI_FAILURE(status)) { | 1302 | if (ACPI_FAILURE(status)) { |
1303 | warn("%s: _EJ0 failed\n", __FUNCTION__); | 1303 | warn("%s: _EJ0 failed\n", __func__); |
1304 | return -1; | 1304 | return -1; |
1305 | } else | 1305 | } else |
1306 | break; | 1306 | break; |
@@ -1349,7 +1349,7 @@ static int acpiphp_check_bridge(struct acpiphp_bridge *bridge) | |||
1349 | } | 1349 | } |
1350 | } | 1350 | } |
1351 | 1351 | ||
1352 | dbg("%s: %d enabled, %d disabled\n", __FUNCTION__, enabled, disabled); | 1352 | dbg("%s: %d enabled, %d disabled\n", __func__, enabled, disabled); |
1353 | 1353 | ||
1354 | err_exit: | 1354 | err_exit: |
1355 | return retval; | 1355 | return retval; |
@@ -1527,7 +1527,7 @@ check_sub_bridges(acpi_handle handle, u32 lvl, void *context, void **rv) | |||
1527 | if (bridge) { | 1527 | if (bridge) { |
1528 | acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer); | 1528 | acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer); |
1529 | dbg("%s: re-enumerating slots under %s\n", | 1529 | dbg("%s: re-enumerating slots under %s\n", |
1530 | __FUNCTION__, objname); | 1530 | __func__, objname); |
1531 | acpiphp_check_bridge(bridge); | 1531 | acpiphp_check_bridge(bridge); |
1532 | } | 1532 | } |
1533 | return AE_OK ; | 1533 | return AE_OK ; |
@@ -1572,10 +1572,10 @@ static void handle_hotplug_event_bridge(acpi_handle handle, u32 type, void *cont | |||
1572 | switch (type) { | 1572 | switch (type) { |
1573 | case ACPI_NOTIFY_BUS_CHECK: | 1573 | case ACPI_NOTIFY_BUS_CHECK: |
1574 | /* bus re-enumerate */ | 1574 | /* bus re-enumerate */ |
1575 | dbg("%s: Bus check notify on %s\n", __FUNCTION__, objname); | 1575 | dbg("%s: Bus check notify on %s\n", __func__, objname); |
1576 | if (bridge) { | 1576 | if (bridge) { |
1577 | dbg("%s: re-enumerating slots under %s\n", | 1577 | dbg("%s: re-enumerating slots under %s\n", |
1578 | __FUNCTION__, objname); | 1578 | __func__, objname); |
1579 | acpiphp_check_bridge(bridge); | 1579 | acpiphp_check_bridge(bridge); |
1580 | } | 1580 | } |
1581 | if (num_sub_bridges) | 1581 | if (num_sub_bridges) |
@@ -1585,18 +1585,18 @@ static void handle_hotplug_event_bridge(acpi_handle handle, u32 type, void *cont | |||
1585 | 1585 | ||
1586 | case ACPI_NOTIFY_DEVICE_CHECK: | 1586 | case ACPI_NOTIFY_DEVICE_CHECK: |
1587 | /* device check */ | 1587 | /* device check */ |
1588 | dbg("%s: Device check notify on %s\n", __FUNCTION__, objname); | 1588 | dbg("%s: Device check notify on %s\n", __func__, objname); |
1589 | acpiphp_check_bridge(bridge); | 1589 | acpiphp_check_bridge(bridge); |
1590 | break; | 1590 | break; |
1591 | 1591 | ||
1592 | case ACPI_NOTIFY_DEVICE_WAKE: | 1592 | case ACPI_NOTIFY_DEVICE_WAKE: |
1593 | /* wake event */ | 1593 | /* wake event */ |
1594 | dbg("%s: Device wake notify on %s\n", __FUNCTION__, objname); | 1594 | dbg("%s: Device wake notify on %s\n", __func__, objname); |
1595 | break; | 1595 | break; |
1596 | 1596 | ||
1597 | case ACPI_NOTIFY_EJECT_REQUEST: | 1597 | case ACPI_NOTIFY_EJECT_REQUEST: |
1598 | /* request device eject */ | 1598 | /* request device eject */ |
1599 | dbg("%s: Device eject notify on %s\n", __FUNCTION__, objname); | 1599 | dbg("%s: Device eject notify on %s\n", __func__, objname); |
1600 | if ((bridge->type != BRIDGE_TYPE_HOST) && | 1600 | if ((bridge->type != BRIDGE_TYPE_HOST) && |
1601 | (bridge->flags & BRIDGE_HAS_EJ0)) { | 1601 | (bridge->flags & BRIDGE_HAS_EJ0)) { |
1602 | struct acpiphp_slot *slot; | 1602 | struct acpiphp_slot *slot; |
@@ -1649,24 +1649,24 @@ static void handle_hotplug_event_func(acpi_handle handle, u32 type, void *contex | |||
1649 | switch (type) { | 1649 | switch (type) { |
1650 | case ACPI_NOTIFY_BUS_CHECK: | 1650 | case ACPI_NOTIFY_BUS_CHECK: |
1651 | /* bus re-enumerate */ | 1651 | /* bus re-enumerate */ |
1652 | dbg("%s: Bus check notify on %s\n", __FUNCTION__, objname); | 1652 | dbg("%s: Bus check notify on %s\n", __func__, objname); |
1653 | acpiphp_enable_slot(func->slot); | 1653 | acpiphp_enable_slot(func->slot); |
1654 | break; | 1654 | break; |
1655 | 1655 | ||
1656 | case ACPI_NOTIFY_DEVICE_CHECK: | 1656 | case ACPI_NOTIFY_DEVICE_CHECK: |
1657 | /* device check : re-enumerate from parent bus */ | 1657 | /* device check : re-enumerate from parent bus */ |
1658 | dbg("%s: Device check notify on %s\n", __FUNCTION__, objname); | 1658 | dbg("%s: Device check notify on %s\n", __func__, objname); |
1659 | acpiphp_check_bridge(func->slot->bridge); | 1659 | acpiphp_check_bridge(func->slot->bridge); |
1660 | break; | 1660 | break; |
1661 | 1661 | ||
1662 | case ACPI_NOTIFY_DEVICE_WAKE: | 1662 | case ACPI_NOTIFY_DEVICE_WAKE: |
1663 | /* wake event */ | 1663 | /* wake event */ |
1664 | dbg("%s: Device wake notify on %s\n", __FUNCTION__, objname); | 1664 | dbg("%s: Device wake notify on %s\n", __func__, objname); |
1665 | break; | 1665 | break; |
1666 | 1666 | ||
1667 | case ACPI_NOTIFY_EJECT_REQUEST: | 1667 | case ACPI_NOTIFY_EJECT_REQUEST: |
1668 | /* request device eject */ | 1668 | /* request device eject */ |
1669 | dbg("%s: Device eject notify on %s\n", __FUNCTION__, objname); | 1669 | dbg("%s: Device eject notify on %s\n", __func__, objname); |
1670 | if (!(acpiphp_disable_slot(func->slot))) | 1670 | if (!(acpiphp_disable_slot(func->slot))) |
1671 | acpiphp_eject_slot(func->slot); | 1671 | acpiphp_eject_slot(func->slot); |
1672 | break; | 1672 | break; |
@@ -1796,7 +1796,7 @@ int acpiphp_enable_slot(struct acpiphp_slot *slot) | |||
1796 | if (retval) | 1796 | if (retval) |
1797 | power_off_slot(slot); | 1797 | power_off_slot(slot); |
1798 | } else { | 1798 | } else { |
1799 | dbg("%s: Slot status is not ACPI_STA_ALL\n", __FUNCTION__); | 1799 | dbg("%s: Slot status is not ACPI_STA_ALL\n", __func__); |
1800 | power_off_slot(slot); | 1800 | power_off_slot(slot); |
1801 | } | 1801 | } |
1802 | 1802 | ||