aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/watchdog_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/watchdog_dev.c')
-rw-r--r--drivers/watchdog/watchdog_dev.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c
index 1199da0f98cf..55b1f60b19d2 100644
--- a/drivers/watchdog/watchdog_dev.c
+++ b/drivers/watchdog/watchdog_dev.c
@@ -347,7 +347,7 @@ int watchdog_dev_register(struct watchdog_device *watchdog)
347 347
348 /* Only one device can register for /dev/watchdog */ 348 /* Only one device can register for /dev/watchdog */
349 if (test_and_set_bit(0, &watchdog_dev_busy)) { 349 if (test_and_set_bit(0, &watchdog_dev_busy)) {
350 pr_err("only one watchdog can use /dev/watchdog.\n"); 350 pr_err("only one watchdog can use /dev/watchdog\n");
351 return -EBUSY; 351 return -EBUSY;
352 } 352 }
353 353
@@ -355,8 +355,8 @@ int watchdog_dev_register(struct watchdog_device *watchdog)
355 355
356 err = misc_register(&watchdog_miscdev); 356 err = misc_register(&watchdog_miscdev);
357 if (err != 0) { 357 if (err != 0) {
358 pr_err("%s: cannot register miscdev on minor=%d (err=%d).\n", 358 pr_err("%s: cannot register miscdev on minor=%d (err=%d)\n",
359 watchdog->info->identity, WATCHDOG_MINOR, err); 359 watchdog->info->identity, WATCHDOG_MINOR, err);
360 goto out; 360 goto out;
361 } 361 }
362 362
@@ -383,8 +383,8 @@ int watchdog_dev_unregister(struct watchdog_device *watchdog)
383 383
384 /* We can only unregister the watchdog device that was registered */ 384 /* We can only unregister the watchdog device that was registered */
385 if (watchdog != wdd) { 385 if (watchdog != wdd) {
386 pr_err("%s: watchdog was not registered as /dev/watchdog.\n", 386 pr_err("%s: watchdog was not registered as /dev/watchdog\n",
387 watchdog->info->identity); 387 watchdog->info->identity);
388 return -ENODEV; 388 return -ENODEV;
389 } 389 }
390 390