diff options
author | Guillaume Ranquet <granquet@baylibre.com> | 2022-03-07 20:26:56 +0300 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2022-03-07 21:21:25 +0300 |
commit | 4467b8bad2401794fb89a0268c8c8257180bf60f (patch) | |
tree | e019e0b657db3723a6f48918d74f76b34bca8885 /Documentation/devicetree/bindings | |
parent | 389e3bff69b4341b42779833063c7b462a6e6d42 (diff) | |
download | linux-4467b8bad2401794fb89a0268c8c8257180bf60f.tar.xz |
clocksource/drivers/timer-of: Check return value of of_iomap in timer_of_base_init()
of_base->base can either be iomapped using of_io_request_and_map() or
of_iomap() depending whether or not an of_base->name has been set.
Thus check of_base->base against NULL as of_iomap() does not return a
PTR_ERR() in case of error.
Fixes: 9aea417afa6b ("clocksource/drivers/timer-of: Don't request the resource by name")
Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
Link: https://lore.kernel.org/r/20220307172656.4836-1-granquet@baylibre.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings')
0 files changed, 0 insertions, 0 deletions