Skip to content
Commit 4467b8ba authored by Guillaume Ranquet's avatar Guillaume Ranquet Committed by Daniel Lezcano
Browse files

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: 9aea417a ("clocksource/drivers/timer-of: Don't request the resource by name")
Signed-off-by: default avatarGuillaume Ranquet <granquet@baylibre.com>
Link: https://lore.kernel.org/r/20220307172656.4836-1-granquet@baylibre.com


Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 389e3bff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment