watchdog: sch56xx-common: set correct bits in register()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 May 2012 15:58:02 +0000 (18:58 +0300)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 30 May 2012 05:56:17 +0000 (07:56 +0200)
commitbb644913a7d6dabcc4a1640817fa7b68938a56eb
treef49403e4616b7fb52db60613e2d974ffa17609c7
parent664a0d7862a6b10c709d4b4a3655fe2c59a20064
watchdog: sch56xx-common: set correct bits in register()

WDOG_NO_WAY_OUT (3) and WDOG_ACTIVE (0) are the bit numbers, not a mask.
So "data->wddev.status |= WDOG_ACTIVE;" was intended to set bit zero but
it is a no-op.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/hwmon/sch56xx-common.c