fix:watchdog redefinition error

This commit is contained in:
Guohezu001 2024-10-29 10:56:20 +08:00
parent 4d3b8fc027
commit a07c133246
2 changed files with 1 additions and 6 deletions

View File

@ -168,7 +168,7 @@ static rt_err_t imx6ull_wdog_control(watchdog_t *wdt, int cmd, void *args)
}
break;
default:
return RT_EINVAL;
return RT_ERROR;
}
return RT_EOK;

View File

@ -40,9 +40,4 @@ struct rwatchdog_ops
rt_err_t (*control)(watchdog_t *wdt, int cmd, void *arg);
};
rt_err_t watchdog_register( watchdog_t *wdt,
const char *name,
rt_uint32_t flag,
void *data);
#endif /* __WATCHDOG_H__ */