diff options
author | Chen Ni <nichen@iscas.ac.cn> | 2024-04-26 15:58:08 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-12 11:03:40 +0200 |
commit | 5aae3129c39c490b47190626e91326ad71d6bc57 (patch) | |
tree | ab7af9b4d5869747518d049f3e83338b33045100 /drivers/watchdog/ts4800_wdt.c | |
parent | 1c991befa127b0d76ee999327f028a29b336c8e7 (diff) | |
download | linux-5aae3129c39c490b47190626e91326ad71d6bc57.tar.gz linux-5aae3129c39c490b47190626e91326ad71d6bc57.tar.bz2 linux-5aae3129c39c490b47190626e91326ad71d6bc57.zip |
watchdog: sa1100: Fix PTR_ERR_OR_ZERO() vs NULL check in sa1100dog_probe()
[ Upstream commit 413bf4e857fd79617524d5dcd35f463e9aa2dd41 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/watchdog/ts4800_wdt.c')
0 files changed, 0 insertions, 0 deletions