File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1428,7 +1428,7 @@ static int __init arch_timer_of_init(struct device_node *np)
1428
1428
1429
1429
arch_timers_present |= ARCH_TIMER_TYPE_CP15 ;
1430
1430
1431
- has_names = of_property_read_bool (np , "interrupt-names" );
1431
+ has_names = of_property_present (np , "interrupt-names" );
1432
1432
1433
1433
for (i = ARCH_TIMER_PHYS_SECURE_PPI ; i < ARCH_TIMER_MAX_TIMER_PPI ; i ++ ) {
1434
1434
if (has_names )
Original file line number Diff line number Diff line change @@ -202,10 +202,10 @@ static bool __init dmtimer_is_preferred(struct device_node *np)
202
202
203
203
/* Secure gptimer12 is always clocked with a fixed source */
204
204
if (!of_property_read_bool (np , "ti,timer-secure" )) {
205
- if (!of_property_read_bool (np , "assigned-clocks" ))
205
+ if (!of_property_present (np , "assigned-clocks" ))
206
206
return false;
207
207
208
- if (!of_property_read_bool (np , "assigned-clock-parents" ))
208
+ if (!of_property_present (np , "assigned-clock-parents" ))
209
209
return false;
210
210
}
211
211
You can’t perform that action at this time.
0 commit comments