]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: sunxi: Fix compilation with C=2
authorEmilio López <emilio@elopez.com.ar>
Fri, 4 Apr 2014 17:24:25 +0000 (14:24 -0300)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 10 Jun 2014 19:39:26 +0000 (21:39 +0200)
commit27990c8d515ad09ec545f9291ba9820fa4deb216
tree54963c9fddf18325958fffa73d012df9edd0b008
parente9f21728382f5bc0475809e09af0ea69bf226075
watchdog: sunxi: Fix compilation with C=2

When compiling sunxi_defconfig while using C=2, the following error
causes the compilation to fail:

    drivers/watchdog/sunxi_wdt.c:60:15: error: constant 0b0001 is not a valid number

Fix it by using hex notation instead of the non-standard binary one

Signed-off-by: Emilio Lopez <emilio@elopez.com.ar>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/sunxi_wdt.c