aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/acpi_pcihp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/hotplug/acpi_pcihp.c')
-rw-r--r--drivers/pci/hotplug/acpi_pcihp.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/pci/hotplug/acpi_pcihp.c b/drivers/pci/hotplug/acpi_pcihp.c
index 270a33cc08f6..f8c187a763bd 100644
--- a/drivers/pci/hotplug/acpi_pcihp.c
+++ b/drivers/pci/hotplug/acpi_pcihp.c
@@ -36,7 +36,7 @@
36 36
37#define MY_NAME "acpi_pcihp" 37#define MY_NAME "acpi_pcihp"
38 38
39#define dbg(fmt, arg...) do { if (debug_acpi) printk(KERN_DEBUG "%s: %s: " fmt , MY_NAME , __FUNCTION__ , ## arg); } while (0) 39#define dbg(fmt, arg...) do { if (debug_acpi) printk(KERN_DEBUG "%s: %s: " fmt , MY_NAME , __func__ , ## arg); } while (0)
40#define err(format, arg...) printk(KERN_ERR "%s: " format , MY_NAME , ## arg) 40#define err(format, arg...) printk(KERN_ERR "%s: " format , MY_NAME , ## arg)
41#define info(format, arg...) printk(KERN_INFO "%s: " format , MY_NAME , ## arg) 41#define info(format, arg...) printk(KERN_INFO "%s: " format , MY_NAME , ## arg)
42#define warn(format, arg...) printk(KERN_WARNING "%s: " format , MY_NAME , ## arg) 42#define warn(format, arg...) printk(KERN_WARNING "%s: " format , MY_NAME , ## arg)
@@ -71,7 +71,7 @@ decode_type0_hpx_record(union acpi_object *record, struct hotplug_params *hpx)
71 default: 71 default:
72 printk(KERN_WARNING 72 printk(KERN_WARNING
73 "%s: Type 0 Revision %d record not supported\n", 73 "%s: Type 0 Revision %d record not supported\n",
74 __FUNCTION__, revision); 74 __func__, revision);
75 return AE_ERROR; 75 return AE_ERROR;
76 } 76 }
77 return AE_OK; 77 return AE_OK;
@@ -100,7 +100,7 @@ decode_type1_hpx_record(union acpi_object *record, struct hotplug_params *hpx)
100 default: 100 default:
101 printk(KERN_WARNING 101 printk(KERN_WARNING
102 "%s: Type 1 Revision %d record not supported\n", 102 "%s: Type 1 Revision %d record not supported\n",
103 __FUNCTION__, revision); 103 __func__, revision);
104 return AE_ERROR; 104 return AE_ERROR;
105 } 105 }
106 return AE_OK; 106 return AE_OK;
@@ -142,7 +142,7 @@ decode_type2_hpx_record(union acpi_object *record, struct hotplug_params *hpx)
142 default: 142 default:
143 printk(KERN_WARNING 143 printk(KERN_WARNING
144 "%s: Type 2 Revision %d record not supported\n", 144 "%s: Type 2 Revision %d record not supported\n",
145 __FUNCTION__, revision); 145 __func__, revision);
146 return AE_ERROR; 146 return AE_ERROR;
147 } 147 }
148 return AE_OK; 148 return AE_OK;
@@ -203,7 +203,7 @@ acpi_run_hpx(acpi_handle handle, struct hotplug_params *hpx)
203 break; 203 break;
204 default: 204 default:
205 printk(KERN_ERR "%s: Type %d record not supported\n", 205 printk(KERN_ERR "%s: Type %d record not supported\n",
206 __FUNCTION__, type); 206 __func__, type);
207 status = AE_ERROR; 207 status = AE_ERROR;
208 goto exit; 208 goto exit;
209 } 209 }
@@ -235,7 +235,7 @@ acpi_run_hpp(acpi_handle handle, struct hotplug_params *hpp)
235 ret_buf.pointer = kmalloc (ret_buf.length, GFP_KERNEL); 235 ret_buf.pointer = kmalloc (ret_buf.length, GFP_KERNEL);
236 if (!ret_buf.pointer) { 236 if (!ret_buf.pointer) {
237 printk(KERN_ERR "%s:%s alloc for _HPP fail\n", 237 printk(KERN_ERR "%s:%s alloc for _HPP fail\n",
238 __FUNCTION__, (char *)string.pointer); 238 __func__, (char *)string.pointer);
239 kfree(string.pointer); 239 kfree(string.pointer);
240 return AE_NO_MEMORY; 240 return AE_NO_MEMORY;
241 } 241 }
@@ -245,7 +245,7 @@ acpi_run_hpp(acpi_handle handle, struct hotplug_params *hpp)
245 break; 245 break;
246 default: 246 default:
247 if (ACPI_FAILURE(status)) { 247 if (ACPI_FAILURE(status)) {
248 pr_debug("%s:%s _HPP fail=0x%x\n", __FUNCTION__, 248 pr_debug("%s:%s _HPP fail=0x%x\n", __func__,
249 (char *)string.pointer, status); 249 (char *)string.pointer, status);
250 kfree(string.pointer); 250 kfree(string.pointer);
251 return status; 251 return status;
@@ -254,7 +254,7 @@ acpi_run_hpp(acpi_handle handle, struct hotplug_params *hpp)
254 254
255 ext_obj = (union acpi_object *) ret_buf.pointer; 255 ext_obj = (union acpi_object *) ret_buf.pointer;
256 if (ext_obj->type != ACPI_TYPE_PACKAGE) { 256 if (ext_obj->type != ACPI_TYPE_PACKAGE) {
257 printk(KERN_ERR "%s:%s _HPP obj not a package\n", __FUNCTION__, 257 printk(KERN_ERR "%s:%s _HPP obj not a package\n", __func__,
258 (char *)string.pointer); 258 (char *)string.pointer);
259 status = AE_ERROR; 259 status = AE_ERROR;
260 goto free_and_return; 260 goto free_and_return;
@@ -270,7 +270,7 @@ acpi_run_hpp(acpi_handle handle, struct hotplug_params *hpp)
270 break; 270 break;
271 default: 271 default:
272 printk(KERN_ERR "%s:%s _HPP obj type incorrect\n", 272 printk(KERN_ERR "%s:%s _HPP obj type incorrect\n",
273 __FUNCTION__, (char *)string.pointer); 273 __func__, (char *)string.pointer);
274 status = AE_ERROR; 274 status = AE_ERROR;
275 goto free_and_return; 275 goto free_and_return;
276 } 276 }
@@ -311,12 +311,12 @@ acpi_status acpi_run_oshp(acpi_handle handle)
311 if (ACPI_FAILURE(status)) 311 if (ACPI_FAILURE(status))
312 if (status != AE_NOT_FOUND) 312 if (status != AE_NOT_FOUND)
313 printk(KERN_ERR "%s:%s OSHP fails=0x%x\n", 313 printk(KERN_ERR "%s:%s OSHP fails=0x%x\n",
314 __FUNCTION__, (char *)string.pointer, status); 314 __func__, (char *)string.pointer, status);
315 else 315 else
316 dbg("%s:%s OSHP not found\n", 316 dbg("%s:%s OSHP not found\n",
317 __FUNCTION__, (char *)string.pointer); 317 __func__, (char *)string.pointer);
318 else 318 else
319 pr_debug("%s:%s OSHP passes\n", __FUNCTION__, 319 pr_debug("%s:%s OSHP passes\n", __func__,
320 (char *)string.pointer); 320 (char *)string.pointer);
321 321
322 kfree(string.pointer); 322 kfree(string.pointer);