barebox initializes only a single ti-dm timer and stores its non-NULL MMIO base address to the global base variable to indicate a successful probe.
If clock_get were to fail with any error code, base would remain set, hindering future probes of the driver. This would be especially bothersome with EPROBE_DEFER if deep probe is not enabled. Fix this by removing the early setting of the base variable. Signed-off-by: Ahmad Fatoum <a.fat...@barebox.org> --- drivers/clocksource/timer-ti-dm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c index 7fa159723b11..7cc0422d1d16 100644 --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -96,7 +96,6 @@ static int omap_dmtimer_probe(struct device *dev) iores = dev_request_mem_resource(dev, 0); if (IS_ERR(iores)) return PTR_ERR(iores); - base = IOMEM(iores->start); data = device_get_match_data(dev); -- 2.39.5