diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpiolib.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/ads7828.c | 2 | ||||
-rw-r--r-- | drivers/mfd/asic3.c | 6 | ||||
-rw-r--r-- | drivers/mfd/sm501.c | 4 | ||||
-rw-r--r-- | drivers/parport/parport_gsc.c | 4 | ||||
-rw-r--r-- | drivers/parport/parport_pc.c | 8 | ||||
-rw-r--r-- | drivers/sbus/char/cpwatchdog.c | 2 | ||||
-rw-r--r-- | drivers/sbus/char/uctrl.c | 4 | ||||
-rw-r--r-- | drivers/w1/w1_log.h | 2 |
9 files changed, 18 insertions, 18 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 24c62b848bf9..7f138c6195ff 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c | |||
@@ -382,7 +382,7 @@ fail: | |||
382 | spin_unlock_irqrestore(&gpio_lock, flags); | 382 | spin_unlock_irqrestore(&gpio_lock, flags); |
383 | if (status) | 383 | if (status) |
384 | pr_debug("%s: gpio-%d status %d\n", | 384 | pr_debug("%s: gpio-%d status %d\n", |
385 | __FUNCTION__, gpio, status); | 385 | __func__, gpio, status); |
386 | return status; | 386 | return status; |
387 | } | 387 | } |
388 | EXPORT_SYMBOL_GPL(gpio_direction_input); | 388 | EXPORT_SYMBOL_GPL(gpio_direction_input); |
@@ -420,7 +420,7 @@ fail: | |||
420 | spin_unlock_irqrestore(&gpio_lock, flags); | 420 | spin_unlock_irqrestore(&gpio_lock, flags); |
421 | if (status) | 421 | if (status) |
422 | pr_debug("%s: gpio-%d status %d\n", | 422 | pr_debug("%s: gpio-%d status %d\n", |
423 | __FUNCTION__, gpio, status); | 423 | __func__, gpio, status); |
424 | return status; | 424 | return status; |
425 | } | 425 | } |
426 | EXPORT_SYMBOL_GPL(gpio_direction_output); | 426 | EXPORT_SYMBOL_GPL(gpio_direction_output); |
diff --git a/drivers/hwmon/ads7828.c b/drivers/hwmon/ads7828.c index ed71a8bc70dc..5c8b6e0ff47c 100644 --- a/drivers/hwmon/ads7828.c +++ b/drivers/hwmon/ads7828.c | |||
@@ -224,7 +224,7 @@ static int ads7828_detect(struct i2c_adapter *adapter, int address, int kind) | |||
224 | if (in_data & 0xF000) { | 224 | if (in_data & 0xF000) { |
225 | printk(KERN_DEBUG | 225 | printk(KERN_DEBUG |
226 | "%s : Doesn't look like an ads7828 device\n", | 226 | "%s : Doesn't look like an ads7828 device\n", |
227 | __FUNCTION__); | 227 | __func__); |
228 | goto exit_free; | 228 | goto exit_free; |
229 | } | 229 | } |
230 | } | 230 | } |
diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c index f6f2d960cadb..ef8a492766a7 100644 --- a/drivers/mfd/asic3.c +++ b/drivers/mfd/asic3.c | |||
@@ -132,7 +132,7 @@ static void asic3_irq_demux(unsigned int irq, struct irq_desc *desc) | |||
132 | 132 | ||
133 | if (iter >= MAX_ASIC_ISR_LOOPS) | 133 | if (iter >= MAX_ASIC_ISR_LOOPS) |
134 | printk(KERN_ERR "%s: interrupt processing overrun\n", | 134 | printk(KERN_ERR "%s: interrupt processing overrun\n", |
135 | __FUNCTION__); | 135 | __func__); |
136 | } | 136 | } |
137 | 137 | ||
138 | static inline int asic3_irq_to_bank(struct asic3 *asic, int irq) | 138 | static inline int asic3_irq_to_bank(struct asic3 *asic, int irq) |
@@ -409,7 +409,7 @@ int asic3_gpio_get_value(struct asic3 *asic, unsigned gpio) | |||
409 | return asic3_get_gpio_d(asic, Status) & mask; | 409 | return asic3_get_gpio_d(asic, Status) & mask; |
410 | default: | 410 | default: |
411 | printk(KERN_ERR "%s: invalid GPIO value 0x%x", | 411 | printk(KERN_ERR "%s: invalid GPIO value 0x%x", |
412 | __FUNCTION__, gpio); | 412 | __func__, gpio); |
413 | return -EINVAL; | 413 | return -EINVAL; |
414 | } | 414 | } |
415 | } | 415 | } |
@@ -437,7 +437,7 @@ void asic3_gpio_set_value(struct asic3 *asic, unsigned gpio, int val) | |||
437 | return; | 437 | return; |
438 | default: | 438 | default: |
439 | printk(KERN_ERR "%s: invalid GPIO value 0x%x", | 439 | printk(KERN_ERR "%s: invalid GPIO value 0x%x", |
440 | __FUNCTION__, gpio); | 440 | __func__, gpio); |
441 | return; | 441 | return; |
442 | } | 442 | } |
443 | } | 443 | } |
diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c index 6e655b4c6682..2fe64734d8af 100644 --- a/drivers/mfd/sm501.c +++ b/drivers/mfd/sm501.c | |||
@@ -349,11 +349,11 @@ int sm501_unit_power(struct device *dev, unsigned int unit, unsigned int to) | |||
349 | mode &= 3; /* get current power mode */ | 349 | mode &= 3; /* get current power mode */ |
350 | 350 | ||
351 | if (unit >= ARRAY_SIZE(sm->unit_power)) { | 351 | if (unit >= ARRAY_SIZE(sm->unit_power)) { |
352 | dev_err(dev, "%s: bad unit %d\n", __FUNCTION__, unit); | 352 | dev_err(dev, "%s: bad unit %d\n", __func__, unit); |
353 | goto already; | 353 | goto already; |
354 | } | 354 | } |
355 | 355 | ||
356 | dev_dbg(sm->dev, "%s: unit %d, cur %d, to %d\n", __FUNCTION__, unit, | 356 | dev_dbg(sm->dev, "%s: unit %d, cur %d, to %d\n", __func__, unit, |
357 | sm->unit_power[unit], to); | 357 | sm->unit_power[unit], to); |
358 | 358 | ||
359 | if (to == 0 && sm->unit_power[unit] == 0) { | 359 | if (to == 0 && sm->unit_power[unit] == 0) { |
diff --git a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c index 0e77ae2b71a0..e6a7e847ee80 100644 --- a/drivers/parport/parport_gsc.c +++ b/drivers/parport/parport_gsc.c | |||
@@ -365,11 +365,11 @@ static int __devinit parport_init_chip(struct parisc_device *dev) | |||
365 | if (boot_cpu_data.cpu_type > pcxt && !pdc_add_valid(port+4)) { | 365 | if (boot_cpu_data.cpu_type > pcxt && !pdc_add_valid(port+4)) { |
366 | 366 | ||
367 | /* Initialize bidirectional-mode (0x10) & data-tranfer-mode #1 (0x20) */ | 367 | /* Initialize bidirectional-mode (0x10) & data-tranfer-mode #1 (0x20) */ |
368 | printk("%s: initialize bidirectional-mode.\n", __FUNCTION__); | 368 | printk("%s: initialize bidirectional-mode.\n", __func__); |
369 | parport_writeb ( (0x10 + 0x20), port + 4); | 369 | parport_writeb ( (0x10 + 0x20), port + 4); |
370 | 370 | ||
371 | } else { | 371 | } else { |
372 | printk("%s: enhanced parport-modes not supported.\n", __FUNCTION__); | 372 | printk("%s: enhanced parport-modes not supported.\n", __func__); |
373 | } | 373 | } |
374 | 374 | ||
375 | p = parport_gsc_probe_port(port, 0, dev->irq, | 375 | p = parport_gsc_probe_port(port, 0, dev->irq, |
diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c index e71092e80288..e0c2a4584ec6 100644 --- a/drivers/parport/parport_pc.c +++ b/drivers/parport/parport_pc.c | |||
@@ -1415,7 +1415,7 @@ static void __devinit winbond_check(int io, int key) | |||
1415 | { | 1415 | { |
1416 | int devid,devrev,oldid,x_devid,x_devrev,x_oldid; | 1416 | int devid,devrev,oldid,x_devid,x_devrev,x_oldid; |
1417 | 1417 | ||
1418 | if (!request_region(io, 3, __FUNCTION__)) | 1418 | if (!request_region(io, 3, __func__)) |
1419 | return; | 1419 | return; |
1420 | 1420 | ||
1421 | /* First probe without key */ | 1421 | /* First probe without key */ |
@@ -1449,7 +1449,7 @@ static void __devinit winbond_check2(int io,int key) | |||
1449 | { | 1449 | { |
1450 | int devid,devrev,oldid,x_devid,x_devrev,x_oldid; | 1450 | int devid,devrev,oldid,x_devid,x_devrev,x_oldid; |
1451 | 1451 | ||
1452 | if (!request_region(io, 3, __FUNCTION__)) | 1452 | if (!request_region(io, 3, __func__)) |
1453 | return; | 1453 | return; |
1454 | 1454 | ||
1455 | /* First probe without the key */ | 1455 | /* First probe without the key */ |
@@ -1482,7 +1482,7 @@ static void __devinit smsc_check(int io, int key) | |||
1482 | { | 1482 | { |
1483 | int id,rev,oldid,oldrev,x_id,x_rev,x_oldid,x_oldrev; | 1483 | int id,rev,oldid,oldrev,x_id,x_rev,x_oldid,x_oldrev; |
1484 | 1484 | ||
1485 | if (!request_region(io, 3, __FUNCTION__)) | 1485 | if (!request_region(io, 3, __func__)) |
1486 | return; | 1486 | return; |
1487 | 1487 | ||
1488 | /* First probe without the key */ | 1488 | /* First probe without the key */ |
@@ -1547,7 +1547,7 @@ static void __devinit detect_and_report_it87(void) | |||
1547 | u8 r; | 1547 | u8 r; |
1548 | if (verbose_probing) | 1548 | if (verbose_probing) |
1549 | printk(KERN_DEBUG "IT8705 Super-IO detection, now testing port 2E ...\n"); | 1549 | printk(KERN_DEBUG "IT8705 Super-IO detection, now testing port 2E ...\n"); |
1550 | if (!request_region(0x2e, 1, __FUNCTION__)) | 1550 | if (!request_region(0x2e, 1, __func__)) |
1551 | return; | 1551 | return; |
1552 | outb(0x87, 0x2e); | 1552 | outb(0x87, 0x2e); |
1553 | outb(0x01, 0x2e); | 1553 | outb(0x01, 0x2e); |
diff --git a/drivers/sbus/char/cpwatchdog.c b/drivers/sbus/char/cpwatchdog.c index a4e758143665..235703414370 100644 --- a/drivers/sbus/char/cpwatchdog.c +++ b/drivers/sbus/char/cpwatchdog.c | |||
@@ -637,7 +637,7 @@ static int wd_inittimer(int whichdog) | |||
637 | break; | 637 | break; |
638 | default: | 638 | default: |
639 | printk("%s: %s: invalid watchdog id: %i\n", | 639 | printk("%s: %s: invalid watchdog id: %i\n", |
640 | WD_OBPNAME, __FUNCTION__, whichdog); | 640 | WD_OBPNAME, __func__, whichdog); |
641 | return(1); | 641 | return(1); |
642 | } | 642 | } |
643 | if(0 != misc_register(whichmisc)) | 643 | if(0 != misc_register(whichmisc)) |
diff --git a/drivers/sbus/char/uctrl.c b/drivers/sbus/char/uctrl.c index 44d2ef906ac7..383f32c1d347 100644 --- a/drivers/sbus/char/uctrl.c +++ b/drivers/sbus/char/uctrl.c | |||
@@ -393,13 +393,13 @@ static int __init ts102_uctrl_init(void) | |||
393 | err = request_irq(driver->irq, uctrl_interrupt, 0, "uctrl", driver); | 393 | err = request_irq(driver->irq, uctrl_interrupt, 0, "uctrl", driver); |
394 | if (err) { | 394 | if (err) { |
395 | printk("%s: unable to register irq %d\n", | 395 | printk("%s: unable to register irq %d\n", |
396 | __FUNCTION__, driver->irq); | 396 | __func__, driver->irq); |
397 | return err; | 397 | return err; |
398 | } | 398 | } |
399 | 399 | ||
400 | if (misc_register(&uctrl_dev)) { | 400 | if (misc_register(&uctrl_dev)) { |
401 | printk("%s: unable to get misc minor %d\n", | 401 | printk("%s: unable to get misc minor %d\n", |
402 | __FUNCTION__, uctrl_dev.minor); | 402 | __func__, uctrl_dev.minor); |
403 | free_irq(driver->irq, driver); | 403 | free_irq(driver->irq, driver); |
404 | return -ENODEV; | 404 | return -ENODEV; |
405 | } | 405 | } |
diff --git a/drivers/w1/w1_log.h b/drivers/w1/w1_log.h index fe6bdf43380f..e6ab7cf08f88 100644 --- a/drivers/w1/w1_log.h +++ b/drivers/w1/w1_log.h | |||
@@ -30,7 +30,7 @@ | |||
30 | # define assert(expr) \ | 30 | # define assert(expr) \ |
31 | if(unlikely(!(expr))) { \ | 31 | if(unlikely(!(expr))) { \ |
32 | printk(KERN_ERR "Assertion failed! %s,%s,%s,line=%d\n", \ | 32 | printk(KERN_ERR "Assertion failed! %s,%s,%s,line=%d\n", \ |
33 | #expr,__FILE__,__FUNCTION__,__LINE__); \ | 33 | #expr, __FILE__, __func__, __LINE__); \ |
34 | } | 34 | } |
35 | #endif | 35 | #endif |
36 | 36 | ||