watchdog: dw_wdt: fix overflow issue in dw_wdt_top_in_seconds
authorHuibin Hong <huibin.hong@rock-chips.com>
Thu, 27 Jul 2017 12:27:09 +0000 (20:27 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 28 Jul 2017 09:52:33 +0000 (17:52 +0800)
commite8b7cbd64ac23c3f780a52bccd24d0bc5b91f76f
treecbffc5abf5b1a934277ddf152fda76fe66b742e0
parentb926b11cabbf527979f8754092e1bf85bd60964f
watchdog: dw_wdt: fix overflow issue in dw_wdt_top_in_seconds

If top is 15, (1 << (16 + top)) may be negative.

Change-Id: I76e4a603a54f093e64a4b266008570e3afcdb35a
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
drivers/watchdog/dw_wdt.c