aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-04-29 03:59:20 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 11:06:03 -0400
commit6e574195b75543bc6a6240306313988b1952470c (patch)
tree510fb98e64cee409cf1f443391cadb5dc1e53aa3 /drivers/misc
parenteecd58536a97502153d4a2bd6f05038f657a1ab3 (diff)
drivers/misc: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/ibmasm/command.c6
-rw-r--r--drivers/misc/ibmasm/heartbeat.c6
-rw-r--r--drivers/misc/ioc4.c20
-rw-r--r--drivers/misc/sony-laptop.c4
4 files changed, 18 insertions, 18 deletions
diff --git a/drivers/misc/ibmasm/command.c b/drivers/misc/ibmasm/command.c
index 1a0e7978226a..276d3fb68094 100644
--- a/drivers/misc/ibmasm/command.c
+++ b/drivers/misc/ibmasm/command.c
@@ -96,7 +96,7 @@ static inline void do_exec_command(struct service_processor *sp)
96{ 96{
97 char tsbuf[32]; 97 char tsbuf[32];
98 98
99 dbg("%s:%d at %s\n", __FUNCTION__, __LINE__, get_timestamp(tsbuf)); 99 dbg("%s:%d at %s\n", __func__, __LINE__, get_timestamp(tsbuf));
100 100
101 if (ibmasm_send_i2o_message(sp)) { 101 if (ibmasm_send_i2o_message(sp)) {
102 sp->current_command->status = IBMASM_CMD_FAILED; 102 sp->current_command->status = IBMASM_CMD_FAILED;
@@ -119,7 +119,7 @@ void ibmasm_exec_command(struct service_processor *sp, struct command *cmd)
119 unsigned long flags; 119 unsigned long flags;
120 char tsbuf[32]; 120 char tsbuf[32];
121 121
122 dbg("%s:%d at %s\n", __FUNCTION__, __LINE__, get_timestamp(tsbuf)); 122 dbg("%s:%d at %s\n", __func__, __LINE__, get_timestamp(tsbuf));
123 123
124 spin_lock_irqsave(&sp->lock, flags); 124 spin_lock_irqsave(&sp->lock, flags);
125 125
@@ -139,7 +139,7 @@ static void exec_next_command(struct service_processor *sp)
139 unsigned long flags; 139 unsigned long flags;
140 char tsbuf[32]; 140 char tsbuf[32];
141 141
142 dbg("%s:%d at %s\n", __FUNCTION__, __LINE__, get_timestamp(tsbuf)); 142 dbg("%s:%d at %s\n", __func__, __LINE__, get_timestamp(tsbuf));
143 143
144 spin_lock_irqsave(&sp->lock, flags); 144 spin_lock_irqsave(&sp->lock, flags);
145 sp->current_command = dequeue_command(sp); 145 sp->current_command = dequeue_command(sp);
diff --git a/drivers/misc/ibmasm/heartbeat.c b/drivers/misc/ibmasm/heartbeat.c
index 3036e785b3e4..1bc4306572a4 100644
--- a/drivers/misc/ibmasm/heartbeat.c
+++ b/drivers/misc/ibmasm/heartbeat.c
@@ -75,9 +75,9 @@ void ibmasm_heartbeat_exit(struct service_processor *sp)
75{ 75{
76 char tsbuf[32]; 76 char tsbuf[32];
77 77
78 dbg("%s:%d at %s\n", __FUNCTION__, __LINE__, get_timestamp(tsbuf)); 78 dbg("%s:%d at %s\n", __func__, __LINE__, get_timestamp(tsbuf));
79 ibmasm_wait_for_response(sp->heartbeat, IBMASM_CMD_TIMEOUT_NORMAL); 79 ibmasm_wait_for_response(sp->heartbeat, IBMASM_CMD_TIMEOUT_NORMAL);
80 dbg("%s:%d at %s\n", __FUNCTION__, __LINE__, get_timestamp(tsbuf)); 80 dbg("%s:%d at %s\n", __func__, __LINE__, get_timestamp(tsbuf));
81 suspend_heartbeats = 1; 81 suspend_heartbeats = 1;
82 command_put(sp->heartbeat); 82 command_put(sp->heartbeat);
83} 83}
@@ -88,7 +88,7 @@ void ibmasm_receive_heartbeat(struct service_processor *sp, void *message, size
88 struct dot_command_header *header = (struct dot_command_header *)cmd->buffer; 88 struct dot_command_header *header = (struct dot_command_header *)cmd->buffer;
89 char tsbuf[32]; 89 char tsbuf[32];
90 90
91 dbg("%s:%d at %s\n", __FUNCTION__, __LINE__, get_timestamp(tsbuf)); 91 dbg("%s:%d at %s\n", __func__, __LINE__, get_timestamp(tsbuf));
92 if (suspend_heartbeats) 92 if (suspend_heartbeats)
93 return; 93 return;
94 94
diff --git a/drivers/misc/ioc4.c b/drivers/misc/ioc4.c
index 05172d2613d6..6f76573e7c8a 100644
--- a/drivers/misc/ioc4.c
+++ b/drivers/misc/ioc4.c
@@ -75,7 +75,7 @@ ioc4_register_submodule(struct ioc4_submodule *is)
75 printk(KERN_WARNING 75 printk(KERN_WARNING
76 "%s: IOC4 submodule %s probe failed " 76 "%s: IOC4 submodule %s probe failed "
77 "for pci_dev %s", 77 "for pci_dev %s",
78 __FUNCTION__, module_name(is->is_owner), 78 __func__, module_name(is->is_owner),
79 pci_name(idd->idd_pdev)); 79 pci_name(idd->idd_pdev));
80 } 80 }
81 } 81 }
@@ -102,7 +102,7 @@ ioc4_unregister_submodule(struct ioc4_submodule *is)
102 printk(KERN_WARNING 102 printk(KERN_WARNING
103 "%s: IOC4 submodule %s remove failed " 103 "%s: IOC4 submodule %s remove failed "
104 "for pci_dev %s.\n", 104 "for pci_dev %s.\n",
105 __FUNCTION__, module_name(is->is_owner), 105 __func__, module_name(is->is_owner),
106 pci_name(idd->idd_pdev)); 106 pci_name(idd->idd_pdev));
107 } 107 }
108 } 108 }
@@ -282,7 +282,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
282 if ((ret = pci_enable_device(pdev))) { 282 if ((ret = pci_enable_device(pdev))) {
283 printk(KERN_WARNING 283 printk(KERN_WARNING
284 "%s: Failed to enable IOC4 device for pci_dev %s.\n", 284 "%s: Failed to enable IOC4 device for pci_dev %s.\n",
285 __FUNCTION__, pci_name(pdev)); 285 __func__, pci_name(pdev));
286 goto out; 286 goto out;
287 } 287 }
288 pci_set_master(pdev); 288 pci_set_master(pdev);
@@ -292,7 +292,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
292 if (!idd) { 292 if (!idd) {
293 printk(KERN_WARNING 293 printk(KERN_WARNING
294 "%s: Failed to allocate IOC4 data for pci_dev %s.\n", 294 "%s: Failed to allocate IOC4 data for pci_dev %s.\n",
295 __FUNCTION__, pci_name(pdev)); 295 __func__, pci_name(pdev));
296 ret = -ENODEV; 296 ret = -ENODEV;
297 goto out_idd; 297 goto out_idd;
298 } 298 }
@@ -307,7 +307,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
307 printk(KERN_WARNING 307 printk(KERN_WARNING
308 "%s: Unable to find IOC4 misc resource " 308 "%s: Unable to find IOC4 misc resource "
309 "for pci_dev %s.\n", 309 "for pci_dev %s.\n",
310 __FUNCTION__, pci_name(idd->idd_pdev)); 310 __func__, pci_name(idd->idd_pdev));
311 ret = -ENODEV; 311 ret = -ENODEV;
312 goto out_pci; 312 goto out_pci;
313 } 313 }
@@ -316,7 +316,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
316 printk(KERN_WARNING 316 printk(KERN_WARNING
317 "%s: Unable to request IOC4 misc region " 317 "%s: Unable to request IOC4 misc region "
318 "for pci_dev %s.\n", 318 "for pci_dev %s.\n",
319 __FUNCTION__, pci_name(idd->idd_pdev)); 319 __func__, pci_name(idd->idd_pdev));
320 ret = -ENODEV; 320 ret = -ENODEV;
321 goto out_pci; 321 goto out_pci;
322 } 322 }
@@ -326,7 +326,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
326 printk(KERN_WARNING 326 printk(KERN_WARNING
327 "%s: Unable to remap IOC4 misc region " 327 "%s: Unable to remap IOC4 misc region "
328 "for pci_dev %s.\n", 328 "for pci_dev %s.\n",
329 __FUNCTION__, pci_name(idd->idd_pdev)); 329 __func__, pci_name(idd->idd_pdev));
330 ret = -ENODEV; 330 ret = -ENODEV;
331 goto out_misc_region; 331 goto out_misc_region;
332 } 332 }
@@ -372,7 +372,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
372 printk(KERN_WARNING 372 printk(KERN_WARNING
373 "%s: IOC4 submodule 0x%s probe failed " 373 "%s: IOC4 submodule 0x%s probe failed "
374 "for pci_dev %s.\n", 374 "for pci_dev %s.\n",
375 __FUNCTION__, module_name(is->is_owner), 375 __func__, module_name(is->is_owner),
376 pci_name(idd->idd_pdev)); 376 pci_name(idd->idd_pdev));
377 } 377 }
378 } 378 }
@@ -406,7 +406,7 @@ ioc4_remove(struct pci_dev *pdev)
406 printk(KERN_WARNING 406 printk(KERN_WARNING
407 "%s: IOC4 submodule 0x%s remove failed " 407 "%s: IOC4 submodule 0x%s remove failed "
408 "for pci_dev %s.\n", 408 "for pci_dev %s.\n",
409 __FUNCTION__, module_name(is->is_owner), 409 __func__, module_name(is->is_owner),
410 pci_name(idd->idd_pdev)); 410 pci_name(idd->idd_pdev));
411 } 411 }
412 } 412 }
@@ -418,7 +418,7 @@ ioc4_remove(struct pci_dev *pdev)
418 printk(KERN_WARNING 418 printk(KERN_WARNING
419 "%s: Unable to get IOC4 misc mapping for pci_dev %s. " 419 "%s: Unable to get IOC4 misc mapping for pci_dev %s. "
420 "Device removal may be incomplete.\n", 420 "Device removal may be incomplete.\n",
421 __FUNCTION__, pci_name(idd->idd_pdev)); 421 __func__, pci_name(idd->idd_pdev));
422 } 422 }
423 release_mem_region(idd->idd_bar0, sizeof(struct ioc4_misc_regs)); 423 release_mem_region(idd->idd_bar0, sizeof(struct ioc4_misc_regs));
424 424
diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c
index 02ff3d19b1cc..00e48e2a9c11 100644
--- a/drivers/misc/sony-laptop.c
+++ b/drivers/misc/sony-laptop.c
@@ -961,7 +961,7 @@ static int sony_nc_resume(struct acpi_device *device)
961 ret = acpi_callsetfunc(sony_nc_acpi_handle, *item->acpiset, 961 ret = acpi_callsetfunc(sony_nc_acpi_handle, *item->acpiset,
962 item->value, NULL); 962 item->value, NULL);
963 if (ret < 0) { 963 if (ret < 0) {
964 printk("%s: %d\n", __FUNCTION__, ret); 964 printk("%s: %d\n", __func__, ret);
965 break; 965 break;
966 } 966 }
967 } 967 }
@@ -1453,7 +1453,7 @@ static struct sonypi_eventtypes type4_events[] = {
1453 udelay(1); \ 1453 udelay(1); \
1454 if (!n) \ 1454 if (!n) \
1455 dprintk("command failed at %s : %s (line %d)\n", \ 1455 dprintk("command failed at %s : %s (line %d)\n", \
1456 __FILE__, __FUNCTION__, __LINE__); \ 1456 __FILE__, __func__, __LINE__); \
1457} 1457}
1458 1458
1459static u8 sony_pic_call1(u8 dev) 1459static u8 sony_pic_call1(u8 dev)