Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85876
b: refs/heads/master
c: bb59b55
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger authored and Wim Van Sebroeck committed Feb 18, 2008
1 parent 33ba286 commit 20be9cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ea8115bb6f359df4f45152f2b40e1d4d1891392
refs/heads/master: bb59b5578a73d0e0e4e208a014fa7ea0c4f0ccb4
7 changes: 4 additions & 3 deletions trunk/drivers/watchdog/bfin_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#define stamp(fmt, args...) pr_debug("%s:%i: " fmt "\n", __func__, __LINE__, ## args)
#define stampit() stamp("here i am")
#define pr_init(fmt, args...) ({ static const __initdata char __fmt[] = fmt; printk(__fmt, ## args); })

#define WATCHDOG_NAME "bfin-wdt"
#define PFX WATCHDOG_NAME ": "
Expand Down Expand Up @@ -445,19 +446,19 @@ static int __init bfin_wdt_init(void)

ret = register_reboot_notifier(&bfin_wdt_notifier);
if (ret) {
printk(KERN_ERR PFX "cannot register reboot notifier (err=%d)\n", ret);
pr_init(KERN_ERR PFX "cannot register reboot notifier (err=%d)\n", ret);
return ret;
}

ret = misc_register(&bfin_wdt_miscdev);
if (ret) {
printk(KERN_ERR PFX "cannot register miscdev on minor=%d (err=%d)\n",
pr_init(KERN_ERR PFX "cannot register miscdev on minor=%d (err=%d)\n",
WATCHDOG_MINOR, ret);
unregister_reboot_notifier(&bfin_wdt_notifier);
return ret;
}

printk(KERN_INFO PFX "initialized: timeout=%d sec (nowayout=%d)\n",
pr_init(KERN_INFO PFX "initialized: timeout=%d sec (nowayout=%d)\n",
timeout, nowayout);

return 0;
Expand Down

0 comments on commit 20be9cf

Please sign in to comment.