watchdog: sa1100: Fix PTR_ERR_OR_ZERO() vs NULL check in sa1100dog_probe()
authorChen Ni <nichen@iscas.ac.cn>
Fri, 26 Apr 2024 07:58:08 +0000 (15:58 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 4 May 2024 10:50:43 +0000 (12:50 +0200)
commit413bf4e857fd79617524d5dcd35f463e9aa2dd41
treec2f289ba10e4ab46b874d4b26b165ebbbe0f228a
parentcae58516534e110f4a8558d48aa4435e15519121
watchdog: sa1100: Fix PTR_ERR_OR_ZERO() vs NULL check in sa1100dog_probe()

devm_ioremap() doesn't return error pointers, it returns NULL on error.
Update the check accordingly.

Fixes: e86bd43bcfc5 ("watchdog: sa1100: use platform device registration")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20240426075808.1582678-1-nichen@iscas.ac.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/sa1100_wdt.c