watchdog: coh901327_wdt.c: fix timeout
Set the timeout value properly so that we don't get faulty values for the WDIOC_GETTIMEOUT iotcl. 'margin' should be an unsigned int. Also add a check to see if margin is a valid parameter after it is loaded as a module. Signed-off-by: NWim Van Sebroeck <wim@iguana.be> Acked-by: NLinus Walleij <linus.walleij@linaro.org> Acked-by: NWolfram Sang <w.sang@pengutronix.de>
Showing
想要评论请 注册 或 登录