watchdog: hpwdt: Initialize pretimeout from module parameter.
authorJerry Hoemann <jerry.hoemann@hpe.com>
Wed, 8 Aug 2018 19:13:23 +0000 (13:13 -0600)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 2 Oct 2018 11:32:21 +0000 (13:32 +0200)
commit4d9186d01e7a6af1c02fcb639632fb97a8e140a6
tree23c11e23b7aa657103163eadd201a8d65c266532
parent17b57b1883c1285f3d0dc2266e8f79286a7bef38
watchdog: hpwdt: Initialize pretimeout from module parameter.

When the pretimeout is specified as a module parameter, the
value should be reflected in hpwdt_dev.pretimeout.  The default
(on) case is correct.  But, when disabling pretimeout, the value
should be set to zero in hpwdt_dev.

When compiling w/o CONFIG_HPWDT_NMI_DECODING defined, the pretimeout
module parameter is ignored and the value internally will be 0.

Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/hpwdt.c