]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: rt2880_wdt: fix return value check in rt288x_wdt_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 31 Oct 2013 07:50:55 +0000 (15:50 +0800)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 17 Nov 2013 18:38:44 +0000 (19:38 +0100)
commitacfbf9aea6ca7bb0cc4b29ce5ff03a43a34dadae
tree25aabd56b0355cd4494ae33a27d09a1b663f05c8
parentca0d75b3bea846fa8d62ae397bbb75c8434d2813
watchdog: rt2880_wdt: fix return value check in rt288x_wdt_probe()

In case of error, the function devm_request_and_ioremap() returns NULL
pointer not ERR_PTR(). Fix it by using devm_ioremap_resource() instead
of devm_request_and_ioremap().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/rt2880_wdt.c