fix:watchdog redefinition error
This commit is contained in:
parent
4d3b8fc027
commit
a07c133246
|
@ -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;
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in New Issue