]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: imgpdc: Fix default heartbeat
authorJames Hogan <james.hogan@imgtec.com>
Fri, 20 Feb 2015 23:45:45 +0000 (23:45 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 27 Mar 2015 07:47:50 +0000 (08:47 +0100)
commitdc953141b158d4b38a0e447f62527f46fd658c1f
tree333e2aecdf26f2d9e79fec69d6d7e616504c84fc
parent51b583bf18b898cc2a034e688cf7a9decf25b102
watchdog: imgpdc: Fix default heartbeat

The IMG PDC watchdog driver heartbeat module parameter has no default so
it is initialised to zero. This results in the following warning during
probe:

imgpdc-wdt 2006000.wdt: Initial timeout out of range! setting max timeout

The module parameter description implies that the default value should
be PDC_WDT_DEF_TIMEOUT, which isn't yet used, so initialise it to that.

Also tweak the heartbeat module parameter description for consistency.

Fixes: fd4976208e7d ("watchdog: ImgTec PDC Watchdog Timer Driver")
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Cc: Naidu Tellapati <Naidu.Tellapati@imgtec.com>
Cc: Jude Abraham <Jude.Abraham@imgtec.com>
Cc: linux-watchdog@vger.kernel.org
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/imgpdc_wdt.c