aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pcihp_skeleton.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/pcihp_skeleton.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/pcihp_skeleton.c')
-rw-r--r--drivers/pci/hotplug/pcihp_skeleton.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/pci/hotplug/pcihp_skeleton.c b/drivers/pci/hotplug/pcihp_skeleton.c
index 50bcd3fe61da..e3dd6cf9e89f 100644
--- a/drivers/pci/hotplug/pcihp_skeleton.c
+++ b/drivers/pci/hotplug/pcihp_skeleton.c
@@ -98,7 +98,7 @@ static int enable_slot(struct hotplug_slot *hotplug_slot)
98 struct slot *slot = hotplug_slot->private; 98 struct slot *slot = hotplug_slot->private;
99 int retval = 0; 99 int retval = 0;
100 100
101 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 101 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
102 102
103 /* 103 /*
104 * Fill in code here to enable the specified slot 104 * Fill in code here to enable the specified slot
@@ -112,7 +112,7 @@ static int disable_slot(struct hotplug_slot *hotplug_slot)
112 struct slot *slot = hotplug_slot->private; 112 struct slot *slot = hotplug_slot->private;
113 int retval = 0; 113 int retval = 0;
114 114
115 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 115 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
116 116
117 /* 117 /*
118 * Fill in code here to disable the specified slot 118 * Fill in code here to disable the specified slot
@@ -126,7 +126,7 @@ static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status)
126 struct slot *slot = hotplug_slot->private; 126 struct slot *slot = hotplug_slot->private;
127 int retval = 0; 127 int retval = 0;
128 128
129 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 129 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
130 130
131 switch (status) { 131 switch (status) {
132 case 0: 132 case 0:
@@ -151,7 +151,7 @@ static int hardware_test(struct hotplug_slot *hotplug_slot, u32 value)
151 struct slot *slot = hotplug_slot->private; 151 struct slot *slot = hotplug_slot->private;
152 int retval = 0; 152 int retval = 0;
153 153
154 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 154 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
155 155
156 switch (value) { 156 switch (value) {
157 case 0: 157 case 0:
@@ -170,7 +170,7 @@ static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value)
170 struct slot *slot = hotplug_slot->private; 170 struct slot *slot = hotplug_slot->private;
171 int retval = 0; 171 int retval = 0;
172 172
173 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 173 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
174 174
175 /* 175 /*
176 * Fill in logic to get the current power status of the specific 176 * Fill in logic to get the current power status of the specific
@@ -185,7 +185,7 @@ static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value)
185 struct slot *slot = hotplug_slot->private; 185 struct slot *slot = hotplug_slot->private;
186 int retval = 0; 186 int retval = 0;
187 187
188 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 188 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
189 189
190 /* 190 /*
191 * Fill in logic to get the current attention status of the specific 191 * Fill in logic to get the current attention status of the specific
@@ -200,7 +200,7 @@ static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value)
200 struct slot *slot = hotplug_slot->private; 200 struct slot *slot = hotplug_slot->private;
201 int retval = 0; 201 int retval = 0;
202 202
203 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 203 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
204 204
205 /* 205 /*
206 * Fill in logic to get the current latch status of the specific 206 * Fill in logic to get the current latch status of the specific
@@ -215,7 +215,7 @@ static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value)
215 struct slot *slot = hotplug_slot->private; 215 struct slot *slot = hotplug_slot->private;
216 int retval = 0; 216 int retval = 0;
217 217
218 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 218 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
219 219
220 /* 220 /*
221 * Fill in logic to get the current adapter status of the specific 221 * Fill in logic to get the current adapter status of the specific
@@ -229,7 +229,7 @@ static void release_slot(struct hotplug_slot *hotplug_slot)
229{ 229{
230 struct slot *slot = hotplug_slot->private; 230 struct slot *slot = hotplug_slot->private;
231 231
232 dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); 232 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name);
233 kfree(slot->hotplug_slot->info); 233 kfree(slot->hotplug_slot->info);
234 kfree(slot->hotplug_slot); 234 kfree(slot->hotplug_slot);
235 kfree(slot); 235 kfree(slot);