diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2009-04-14 16:20:07 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2009-06-18 03:30:30 -0400 |
commit | a77dba7e444a6618cbb666d1b42b79842b9c0171 (patch) | |
tree | f8e16e2515e83eba774fd06bfca1080c7fa46adc /drivers/watchdog/bfin_wdt.c | |
parent | 0a7e658226d66a259097db5f4734589604b303fd (diff) |
[WATCHDOG] Some more general cleanup
Clean-up the watchdog drivers so that checkpatch.pl get's happy...
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/bfin_wdt.c')
-rw-r--r-- | drivers/watchdog/bfin_wdt.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/watchdog/bfin_wdt.c b/drivers/watchdog/bfin_wdt.c index 067a57cb3f82..c7b3f9df2317 100644 --- a/drivers/watchdog/bfin_wdt.c +++ b/drivers/watchdog/bfin_wdt.c | |||
@@ -27,10 +27,15 @@ | |||
27 | #include <linux/uaccess.h> | 27 | #include <linux/uaccess.h> |
28 | #include <asm/blackfin.h> | 28 | #include <asm/blackfin.h> |
29 | 29 | ||
30 | #define stamp(fmt, args...) pr_debug("%s:%i: " fmt "\n", __func__, __LINE__, ## args) | 30 | #define stamp(fmt, args...) \ |
31 | pr_debug("%s:%i: " fmt "\n", __func__, __LINE__, ## args) | ||
31 | #define stampit() stamp("here i am") | 32 | #define stampit() stamp("here i am") |
32 | #define pr_devinit(fmt, args...) ({ static const __devinitconst char __fmt[] = fmt; printk(__fmt, ## args); }) | 33 | #define pr_devinit(fmt, args...) \ |
33 | #define pr_init(fmt, args...) ({ static const __initconst char __fmt[] = fmt; printk(__fmt, ## args); }) | 34 | ({ static const __devinitconst char __fmt[] = fmt; \ |
35 | printk(__fmt, ## args); }) | ||
36 | #define pr_init(fmt, args...) \ | ||
37 | ({ static const __initconst char __fmt[] = fmt; \ | ||
38 | printk(__fmt, ## args); }) | ||
34 | 39 | ||
35 | #define WATCHDOG_NAME "bfin-wdt" | 40 | #define WATCHDOG_NAME "bfin-wdt" |
36 | #define PFX WATCHDOG_NAME ": " | 41 | #define PFX WATCHDOG_NAME ": " |
@@ -476,7 +481,8 @@ static int __init bfin_wdt_init(void) | |||
476 | return ret; | 481 | return ret; |
477 | } | 482 | } |
478 | 483 | ||
479 | bfin_wdt_device = platform_device_register_simple(WATCHDOG_NAME, -1, NULL, 0); | 484 | bfin_wdt_device = platform_device_register_simple(WATCHDOG_NAME, |
485 | -1, NULL, 0); | ||
480 | if (IS_ERR(bfin_wdt_device)) { | 486 | if (IS_ERR(bfin_wdt_device)) { |
481 | pr_init(KERN_ERR PFX "unable to register device\n"); | 487 | pr_init(KERN_ERR PFX "unable to register device\n"); |
482 | platform_driver_unregister(&bfin_wdt_driver); | 488 | platform_driver_unregister(&bfin_wdt_driver); |