Skip to content
Commit 37bd6ca8 authored by Afzal Mohammed's avatar Afzal Mohammed Committed by Tony Lindgren
Browse files

ARM: OMAP2+: timer: initialize before using oh_name



of_property_read_string_index(...,&oh_name) in omap_dm_timer_init_one
does not alter the value of 'oh_name' even if the relevant function
fails and as 'oh_name' in stack may have a non-zero value, it would
be misunderstood by timer code that DT has specified "ti,hwmod"
property for timer. 'oh_name' in this scenario would be a junk value,
this would result in module not being enabled by hwmod API's for
timer, and in turn crash.

Signed-off-by: default avatarAfzal Mohammed <afzal@ti.com>
Acked-by: default avatarJon Hunter <jgchunter@gmail.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent ddcf6600
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment