diff options
Diffstat (limited to 'nuttx/arch/arm/src/c5471')
-rw-r--r-- | nuttx/arch/arm/src/c5471/c5471_watchdog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/c5471/c5471_watchdog.c b/nuttx/arch/arm/src/c5471/c5471_watchdog.c index 04b390a5c..4a17e9b78 100644 --- a/nuttx/arch/arm/src/c5471/c5471_watchdog.c +++ b/nuttx/arch/arm/src/c5471/c5471_watchdog.c @@ -365,7 +365,7 @@ int up_wdtinit(void) /* Register as /dev/wdt */ - ret = register_inode("/dev/wdt", &g_wdtops, 0666, NULL); + ret = register_driver("/dev/wdt", &g_wdtops, 0666, NULL); if (ret) { return ERROR; @@ -384,7 +384,7 @@ int up_wdtinit(void) ret = irq_attach(C5471_IRQ_WATCHDOG, wdt_interrupt); if (ret) { - unregister_inode("/dev/wdt"); + unregister_driver("/dev/wdt"); return ERROR; } |