watchdog: kempld_wdt: Fix bit mask definition
authorJingoo Han <jg1.han@samsung.com>
Mon, 23 Sep 2013 10:16:57 +0000 (19:16 +0900)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 13 Oct 2013 18:01:57 +0000 (20:01 +0200)
commit4c4e45669de475573b15d968a6dca8d00124c9ad
tree8a130de54ec83c58335679853b1f203992efdcb4
parent8612ed0d97abcf1c016d34755b7cf2060de71963
watchdog: kempld_wdt: Fix bit mask definition

STAGE_CFG bits are defined as [5:4] bits. However, '(((x) & 0x30) << 4)'
handles [9:8] bits. Thus, it should be fixed in order to handle
[5:4] bits.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/kempld_wdt.c