summaryrefslogtreecommitdiff
path: root/drivers/clocksource/mxs_timer.c
diff options
context:
space:
mode:
authorSaravana Kannan <saravanak@google.com>2020-01-10 21:21:25 -0800
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-03-17 13:10:07 +0100
commit4f41fe386a94639cd9a1831298d4f85db5662f1e (patch)
tree54d144205cdb0caa693087e2170750a28bb0453f /drivers/clocksource/mxs_timer.c
parent3d17cee291e8a4bc4c8b29b1c8a1b79e12f95473 (diff)
clocksource/drivers/timer-probe: Avoid creating dead devices
Timer initialization is done during early boot way before the driver core starts processing devices and drivers. Timers initialized during this early boot period don't really need or use a struct device. However, for timers represented as device tree nodes, the struct devices are still created and sit around unused and wasting memory. This change avoid this by marking the device tree nodes as "populated" if the corresponding timer is successfully initialized. Signed-off-by: Saravana Kannan <saravanak@google.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20200111052125.238212-1-saravanak@google.com
Diffstat (limited to 'drivers/clocksource/mxs_timer.c')
0 files changed, 0 insertions, 0 deletions