Skip to content
Snippets Groups Projects
Commit eeb93d02 authored by Sebastian Hesselbarth's avatar Sebastian Hesselbarth Committed by Daniel Lezcano
Browse files

clocksource: of: Respect device tree node status


Clocksource devices provided by DT can be disabled (status != "okay").
Instead of registering clocksource drivers for disabled nodes, respect
the device's status by skiping disabled nodes.

Signed-off-by: default avatarSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 5df718d8
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,9 @@ void __init clocksource_of_init(void) ...@@ -30,6 +30,9 @@ void __init clocksource_of_init(void)
clocksource_of_init_fn init_func; clocksource_of_init_fn init_func;
for_each_matching_node_and_match(np, __clksrc_of_table, &match) { for_each_matching_node_and_match(np, __clksrc_of_table, &match) {
if (!of_device_is_available(np))
continue;
init_func = match->data; init_func = match->data;
init_func(np); init_func(np);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment