aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/cpqphp_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/cpqphp_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/cpqphp_core.c')
-rw-r--r--drivers/pci/hotplug/cpqphp_core.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/pci/hotplug/cpqphp_core.c b/drivers/pci/hotplug/cpqphp_core.c
index 74178875b949..36b115b27b0b 100644
--- a/drivers/pci/hotplug/cpqphp_core.c
+++ b/drivers/pci/hotplug/cpqphp_core.c
@@ -315,7 +315,7 @@ static void release_slot(struct hotplug_slot *hotplug_slot)
315{ 315{
316 struct slot *slot = hotplug_slot->private; 316 struct slot *slot = hotplug_slot->private;
317 317
318 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 318 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
319 319
320 kfree(slot->hotplug_slot->info); 320 kfree(slot->hotplug_slot->info);
321 kfree(slot->hotplug_slot->name); 321 kfree(slot->hotplug_slot->name);
@@ -338,7 +338,7 @@ static int ctrl_slot_setup(struct controller *ctrl,
338 void __iomem *slot_entry= NULL; 338 void __iomem *slot_entry= NULL;
339 int result = -ENOMEM; 339 int result = -ENOMEM;
340 340
341 dbg("%s\n", __FUNCTION__); 341 dbg("%s\n", __func__);
342 342
343 tempdword = readl(ctrl->hpc_reg + INT_INPUT_CLEAR); 343 tempdword = readl(ctrl->hpc_reg + INT_INPUT_CLEAR);
344 344
@@ -513,7 +513,7 @@ get_slot_mapping(struct pci_bus *bus, u8 bus_num, u8 dev_num, u8 *slot)
513 513
514 u8 tbus, tdevice, tslot, bridgeSlot; 514 u8 tbus, tdevice, tslot, bridgeSlot;
515 515
516 dbg("%s: %p, %d, %d, %p\n", __FUNCTION__, bus, bus_num, dev_num, slot); 516 dbg("%s: %p, %d, %d, %p\n", __func__, bus, bus_num, dev_num, slot);
517 517
518 bridgeSlot = 0xFF; 518 bridgeSlot = 0xFF;
519 519
@@ -636,7 +636,7 @@ static int set_attention_status (struct hotplug_slot *hotplug_slot, u8 status)
636 u8 device; 636 u8 device;
637 u8 function; 637 u8 function;
638 638
639 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 639 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
640 640
641 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) 641 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1)
642 return -ENODEV; 642 return -ENODEV;
@@ -663,7 +663,7 @@ static int process_SI(struct hotplug_slot *hotplug_slot)
663 u8 device; 663 u8 device;
664 u8 function; 664 u8 function;
665 665
666 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 666 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
667 667
668 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) 668 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1)
669 return -ENODEV; 669 return -ENODEV;
@@ -695,7 +695,7 @@ static int process_SS(struct hotplug_slot *hotplug_slot)
695 u8 device; 695 u8 device;
696 u8 function; 696 u8 function;
697 697
698 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 698 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
699 699
700 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) 700 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1)
701 return -ENODEV; 701 return -ENODEV;
@@ -708,7 +708,7 @@ static int process_SS(struct hotplug_slot *hotplug_slot)
708 if (!slot_func) 708 if (!slot_func)
709 return -ENODEV; 709 return -ENODEV;
710 710
711 dbg("In %s, slot_func = %p, ctrl = %p\n", __FUNCTION__, slot_func, ctrl); 711 dbg("In %s, slot_func = %p, ctrl = %p\n", __func__, slot_func, ctrl);
712 return cpqhp_process_SS(ctrl, slot_func); 712 return cpqhp_process_SS(ctrl, slot_func);
713} 713}
714 714
@@ -718,7 +718,7 @@ static int hardware_test(struct hotplug_slot *hotplug_slot, u32 value)
718 struct slot *slot = hotplug_slot->private; 718 struct slot *slot = hotplug_slot->private;
719 struct controller *ctrl = slot->ctrl; 719 struct controller *ctrl = slot->ctrl;
720 720
721 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 721 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
722 722
723 return cpqhp_hardware_test(ctrl, value); 723 return cpqhp_hardware_test(ctrl, value);
724} 724}
@@ -729,7 +729,7 @@ static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value)
729 struct slot *slot = hotplug_slot->private; 729 struct slot *slot = hotplug_slot->private;
730 struct controller *ctrl = slot->ctrl; 730 struct controller *ctrl = slot->ctrl;
731 731
732 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 732 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
733 733
734 *value = get_slot_enabled(ctrl, slot); 734 *value = get_slot_enabled(ctrl, slot);
735 return 0; 735 return 0;
@@ -740,7 +740,7 @@ static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value)
740 struct slot *slot = hotplug_slot->private; 740 struct slot *slot = hotplug_slot->private;
741 struct controller *ctrl = slot->ctrl; 741 struct controller *ctrl = slot->ctrl;
742 742
743 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 743 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
744 744
745 *value = cpq_get_attention_status(ctrl, slot); 745 *value = cpq_get_attention_status(ctrl, slot);
746 return 0; 746 return 0;
@@ -751,7 +751,7 @@ static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value)
751 struct slot *slot = hotplug_slot->private; 751 struct slot *slot = hotplug_slot->private;
752 struct controller *ctrl = slot->ctrl; 752 struct controller *ctrl = slot->ctrl;
753 753
754 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 754 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
755 755
756 *value = cpq_get_latch_status(ctrl, slot); 756 *value = cpq_get_latch_status(ctrl, slot);
757 757
@@ -763,7 +763,7 @@ static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value)
763 struct slot *slot = hotplug_slot->private; 763 struct slot *slot = hotplug_slot->private;
764 struct controller *ctrl = slot->ctrl; 764 struct controller *ctrl = slot->ctrl;
765 765
766 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 766 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
767 767
768 *value = get_presence_status(ctrl, slot); 768 *value = get_presence_status(ctrl, slot);
769 769
@@ -775,7 +775,7 @@ static int get_max_bus_speed (struct hotplug_slot *hotplug_slot, enum pci_bus_sp
775 struct slot *slot = hotplug_slot->private; 775 struct slot *slot = hotplug_slot->private;
776 struct controller *ctrl = slot->ctrl; 776 struct controller *ctrl = slot->ctrl;
777 777
778 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 778 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
779 779
780 *value = ctrl->speed_capability; 780 *value = ctrl->speed_capability;
781 781
@@ -787,7 +787,7 @@ static int get_cur_bus_speed (struct hotplug_slot *hotplug_slot, enum pci_bus_sp
787 struct slot *slot = hotplug_slot->private; 787 struct slot *slot = hotplug_slot->private;
788 struct controller *ctrl = slot->ctrl; 788 struct controller *ctrl = slot->ctrl;
789 789
790 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 790 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
791 791
792 *value = ctrl->speed; 792 *value = ctrl->speed;
793 793
@@ -841,7 +841,7 @@ static int cpqhpc_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
841 // TODO: This code can be made to support non-Compaq or Intel subsystem IDs 841 // TODO: This code can be made to support non-Compaq or Intel subsystem IDs
842 rc = pci_read_config_word(pdev, PCI_SUBSYSTEM_VENDOR_ID, &subsystem_vid); 842 rc = pci_read_config_word(pdev, PCI_SUBSYSTEM_VENDOR_ID, &subsystem_vid);
843 if (rc) { 843 if (rc) {
844 err("%s : pci_read_config_word failed\n", __FUNCTION__); 844 err("%s : pci_read_config_word failed\n", __func__);
845 goto err_disable_device; 845 goto err_disable_device;
846 } 846 }
847 dbg("Subsystem Vendor ID: %x\n", subsystem_vid); 847 dbg("Subsystem Vendor ID: %x\n", subsystem_vid);
@@ -853,14 +853,14 @@ static int cpqhpc_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
853 853
854 ctrl = kzalloc(sizeof(struct controller), GFP_KERNEL); 854 ctrl = kzalloc(sizeof(struct controller), GFP_KERNEL);
855 if (!ctrl) { 855 if (!ctrl) {
856 err("%s : out of memory\n", __FUNCTION__); 856 err("%s : out of memory\n", __func__);
857 rc = -ENOMEM; 857 rc = -ENOMEM;
858 goto err_disable_device; 858 goto err_disable_device;
859 } 859 }
860 860
861 rc = pci_read_config_word(pdev, PCI_SUBSYSTEM_ID, &subsystem_deviceid); 861 rc = pci_read_config_word(pdev, PCI_SUBSYSTEM_ID, &subsystem_deviceid);
862 if (rc) { 862 if (rc) {
863 err("%s : pci_read_config_word failed\n", __FUNCTION__); 863 err("%s : pci_read_config_word failed\n", __func__);
864 goto err_free_ctrl; 864 goto err_free_ctrl;
865 } 865 }
866 866
@@ -1142,7 +1142,7 @@ static int cpqhpc_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1142 rc = cpqhp_save_config(ctrl, ctrl->bus, readb(ctrl->hpc_reg + SLOT_MASK)); 1142 rc = cpqhp_save_config(ctrl, ctrl->bus, readb(ctrl->hpc_reg + SLOT_MASK));
1143 if (rc) { 1143 if (rc) {
1144 err("%s: unable to save PCI configuration data, error %d\n", 1144 err("%s: unable to save PCI configuration data, error %d\n",
1145 __FUNCTION__, rc); 1145 __func__, rc);
1146 goto err_iounmap; 1146 goto err_iounmap;
1147 } 1147 }
1148 1148
@@ -1180,7 +1180,7 @@ static int cpqhpc_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1180 if (rc) { 1180 if (rc) {
1181 err(msg_initialization_err, 6); 1181 err(msg_initialization_err, 6);
1182 err("%s: unable to save PCI configuration data, error %d\n", 1182 err("%s: unable to save PCI configuration data, error %d\n",
1183 __FUNCTION__, rc); 1183 __func__, rc);
1184 goto err_iounmap; 1184 goto err_iounmap;
1185 } 1185 }
1186 1186