diff --git a/arch/arm/src/sam34/sam_wdt.c b/arch/arm/src/sam34/sam_wdt.c index 62075d9a76..a75f63097b 100644 --- a/arch/arm/src/sam34/sam_wdt.c +++ b/arch/arm/src/sam34/sam_wdt.c @@ -695,7 +695,9 @@ void sam_wdtinitialize(FAR const char *devpath) priv->window = priv->reload; - /* Register the watchdog driver as /dev/watchdog0 */ + /* Register the watchdog driver, usually at CONFIG_WATCHDOG_DEVPATH + * (default /dev/watchdog0). + */ (void)watchdog_register(devpath, (FAR struct watchdog_lowerhalf_s *)priv); diff --git a/arch/arm/src/sama5/sam_wdt.c b/arch/arm/src/sama5/sam_wdt.c index 26f40860b7..342aa5c8f3 100644 --- a/arch/arm/src/sama5/sam_wdt.c +++ b/arch/arm/src/sama5/sam_wdt.c @@ -687,9 +687,11 @@ int sam_wdt_initialize(void) (void)irq_attach(SAM_IRQ_WDT, sam_interrupt); #endif - /* Register the watchdog driver as /dev/watchdog0 */ + /* Register the watchdog driver at the configured location (default + * /dev/watchdog0). + */ - (void)watchdog_register("/dev/watchdog0", + (void)watchdog_register(CONFIG_WATCHDOG_DEVPATH, (FAR struct watchdog_lowerhalf_s *)priv); return OK; } diff --git a/arch/arm/src/samv7/sam_wdt.c b/arch/arm/src/samv7/sam_wdt.c index d317bbd74d..850fd2288c 100644 --- a/arch/arm/src/samv7/sam_wdt.c +++ b/arch/arm/src/samv7/sam_wdt.c @@ -687,9 +687,11 @@ int sam_wdt_initialize(void) (void)irq_attach(SAM_IRQ_WDT, sam_interrupt); #endif - /* Register the watchdog driver as /dev/wdt */ + /* Register the watchdog driver as device-node configured via .config. + * Normally /dev/watchdog0 + */ - (void)watchdog_register("/dev/wdt", + (void)watchdog_register(CONFIG_WATCHDOG_DEVPATH, (FAR struct watchdog_lowerhalf_s *)priv); return OK; }