watchdog: bcm_kona_wdt: Use correct return value for bcm_kona_wdt_probe()
authorTiezhu Yang <yangtiezhu@loongson.cn>
Mon, 25 May 2020 07:31:04 +0000 (15:31 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 5 Aug 2020 16:42:46 +0000 (18:42 +0200)
commitfd998972458f06d3fadbf4e55a3725c4edc17c12
tree78e99da233e2db26b97fe64d28201e7b3af8e390
parentff01cb1ca1f9e02e54e562bb97999e4bf1726a9e
watchdog: bcm_kona_wdt: Use correct return value for bcm_kona_wdt_probe()

When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/1590391864-308-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/bcm_kona_wdt.c