mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
[WATCHDOG] SBC-FITPC2 watchdog driver registration fix
This patch fixes device registration process. Signed-off-by: Denis Turischev <denis@compulab.co.il> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
parent
799dd75b1a
commit
1efd374d78
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ static int __init fitpc2_wdt_init(void)
|
|||
}
|
||||
|
||||
err = misc_register(&fitpc2_wdt_miscdev);
|
||||
if (!err) {
|
||||
if (err) {
|
||||
pr_err("cannot register miscdev on minor=%d (err=%d)\n",
|
||||
WATCHDOG_MINOR, err);
|
||||
goto err_margin;
|
||||
|
|
Loading…
Reference in a new issue