diff options
Diffstat (limited to 'drivers/pci/hotplug/shpchp_core.c')
-rw-r--r-- | drivers/pci/hotplug/shpchp_core.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/pci/hotplug/shpchp_core.c b/drivers/pci/hotplug/shpchp_core.c index 80dec9796b3..43816d4b3c4 100644 --- a/drivers/pci/hotplug/shpchp_core.c +++ b/drivers/pci/hotplug/shpchp_core.c | |||
@@ -91,7 +91,7 @@ static void release_slot(struct hotplug_slot *hotplug_slot) | |||
91 | { | 91 | { |
92 | struct slot *slot = hotplug_slot->private; | 92 | struct slot *slot = hotplug_slot->private; |
93 | 93 | ||
94 | dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); | 94 | dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); |
95 | 95 | ||
96 | kfree(slot->hotplug_slot->info); | 96 | kfree(slot->hotplug_slot->info); |
97 | kfree(slot->hotplug_slot); | 97 | kfree(slot->hotplug_slot); |
@@ -195,7 +195,7 @@ static int set_attention_status (struct hotplug_slot *hotplug_slot, u8 status) | |||
195 | { | 195 | { |
196 | struct slot *slot = get_slot(hotplug_slot); | 196 | struct slot *slot = get_slot(hotplug_slot); |
197 | 197 | ||
198 | dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); | 198 | dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); |
199 | 199 | ||
200 | hotplug_slot->info->attention_status = status; | 200 | hotplug_slot->info->attention_status = status; |
201 | slot->hpc_ops->set_attention_status(slot, status); | 201 | slot->hpc_ops->set_attention_status(slot, status); |
@@ -207,7 +207,7 @@ static int enable_slot (struct hotplug_slot *hotplug_slot) | |||
207 | { | 207 | { |
208 | struct slot *slot = get_slot(hotplug_slot); | 208 | struct slot *slot = get_slot(hotplug_slot); |
209 | 209 | ||
210 | dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); | 210 | dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); |
211 | 211 | ||
212 | return shpchp_sysfs_enable_slot(slot); | 212 | return shpchp_sysfs_enable_slot(slot); |
213 | } | 213 | } |
@@ -216,7 +216,7 @@ static int disable_slot (struct hotplug_slot *hotplug_slot) | |||
216 | { | 216 | { |
217 | struct slot *slot = get_slot(hotplug_slot); | 217 | struct slot *slot = get_slot(hotplug_slot); |
218 | 218 | ||
219 | dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); | 219 | dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); |
220 | 220 | ||
221 | return shpchp_sysfs_disable_slot(slot); | 221 | return shpchp_sysfs_disable_slot(slot); |
222 | } | 222 | } |
@@ -226,7 +226,7 @@ static int get_power_status (struct hotplug_slot *hotplug_slot, u8 *value) | |||
226 | struct slot *slot = get_slot(hotplug_slot); | 226 | struct slot *slot = get_slot(hotplug_slot); |
227 | int retval; | 227 | int retval; |
228 | 228 | ||
229 | dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); | 229 | dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); |
230 | 230 | ||
231 | retval = slot->hpc_ops->get_power_status(slot, value); | 231 | retval = slot->hpc_ops->get_power_status(slot, value); |
232 | if (retval < 0) | 232 | if (retval < 0) |
@@ -240,7 +240,7 @@ static int get_attention_status (struct hotplug_slot *hotplug_slot, u8 *value) | |||
240 | struct slot *slot = get_slot(hotplug_slot); | 240 | struct slot *slot = get_slot(hotplug_slot); |
241 | int retval; | 241 | int retval; |
242 | 242 | ||
243 | dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); | 243 | dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); |
244 | 244 | ||
245 | retval = slot->hpc_ops->get_attention_status(slot, value); | 245 | retval = slot->hpc_ops->get_attention_status(slot, value); |
246 | if (retval < 0) | 246 | if (retval < 0) |
@@ -254,7 +254,7 @@ static int get_latch_status (struct hotplug_slot *hotplug_slot, u8 *value) | |||
254 | struct slot *slot = get_slot(hotplug_slot); | 254 | struct slot *slot = get_slot(hotplug_slot); |
255 | int retval; | 255 | int retval; |
256 | 256 | ||
257 | dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); | 257 | dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); |
258 | 258 | ||
259 | retval = slot->hpc_ops->get_latch_status(slot, value); | 259 | retval = slot->hpc_ops->get_latch_status(slot, value); |
260 | if (retval < 0) | 260 | if (retval < 0) |
@@ -268,7 +268,7 @@ static int get_adapter_status (struct hotplug_slot *hotplug_slot, u8 *value) | |||
268 | struct slot *slot = get_slot(hotplug_slot); | 268 | struct slot *slot = get_slot(hotplug_slot); |
269 | int retval; | 269 | int retval; |
270 | 270 | ||
271 | dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); | 271 | dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); |
272 | 272 | ||
273 | retval = slot->hpc_ops->get_adapter_status(slot, value); | 273 | retval = slot->hpc_ops->get_adapter_status(slot, value); |
274 | if (retval < 0) | 274 | if (retval < 0) |
@@ -282,7 +282,7 @@ static int get_address (struct hotplug_slot *hotplug_slot, u32 *value) | |||
282 | struct slot *slot = get_slot(hotplug_slot); | 282 | struct slot *slot = get_slot(hotplug_slot); |
283 | struct pci_bus *bus = slot->ctrl->pci_dev->subordinate; | 283 | struct pci_bus *bus = slot->ctrl->pci_dev->subordinate; |
284 | 284 | ||
285 | dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); | 285 | dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); |
286 | 286 | ||
287 | *value = (pci_domain_nr(bus) << 16) | (slot->bus << 8) | slot->device; | 287 | *value = (pci_domain_nr(bus) << 16) | (slot->bus << 8) | slot->device; |
288 | 288 | ||
@@ -294,7 +294,7 @@ static int get_max_bus_speed (struct hotplug_slot *hotplug_slot, enum pci_bus_sp | |||
294 | struct slot *slot = get_slot(hotplug_slot); | 294 | struct slot *slot = get_slot(hotplug_slot); |
295 | int retval; | 295 | int retval; |
296 | 296 | ||
297 | dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); | 297 | dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); |
298 | 298 | ||
299 | retval = slot->hpc_ops->get_max_bus_speed(slot, value); | 299 | retval = slot->hpc_ops->get_max_bus_speed(slot, value); |
300 | if (retval < 0) | 300 | if (retval < 0) |
@@ -308,7 +308,7 @@ static int get_cur_bus_speed (struct hotplug_slot *hotplug_slot, enum pci_bus_sp | |||
308 | struct slot *slot = get_slot(hotplug_slot); | 308 | struct slot *slot = get_slot(hotplug_slot); |
309 | int retval; | 309 | int retval; |
310 | 310 | ||
311 | dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); | 311 | dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); |
312 | 312 | ||
313 | retval = slot->hpc_ops->get_cur_bus_speed(slot, value); | 313 | retval = slot->hpc_ops->get_cur_bus_speed(slot, value); |
314 | if (retval < 0) | 314 | if (retval < 0) |
@@ -338,7 +338,7 @@ static int shpc_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
338 | 338 | ||
339 | ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL); | 339 | ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL); |
340 | if (!ctrl) { | 340 | if (!ctrl) { |
341 | err("%s : out of memory\n", __FUNCTION__); | 341 | err("%s : out of memory\n", __func__); |
342 | goto err_out_none; | 342 | goto err_out_none; |
343 | } | 343 | } |
344 | INIT_LIST_HEAD(&ctrl->slot_list); | 344 | INIT_LIST_HEAD(&ctrl->slot_list); |
@@ -402,7 +402,7 @@ static int __init shpcd_init(void) | |||
402 | int retval = 0; | 402 | int retval = 0; |
403 | 403 | ||
404 | retval = pci_register_driver(&shpc_driver); | 404 | retval = pci_register_driver(&shpc_driver); |
405 | dbg("%s: pci_register_driver = %d\n", __FUNCTION__, retval); | 405 | dbg("%s: pci_register_driver = %d\n", __func__, retval); |
406 | info(DRIVER_DESC " version: " DRIVER_VERSION "\n"); | 406 | info(DRIVER_DESC " version: " DRIVER_VERSION "\n"); |
407 | return retval; | 407 | return retval; |
408 | } | 408 | } |