diff options
Diffstat (limited to 'arch/arm/mach-omap2/timer.c')
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index ece09c9461f7..d61fbd7a2840 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c | |||
@@ -156,12 +156,6 @@ static struct clock_event_device clockevent_gpt = { | |||
156 | .tick_resume = omap2_gp_timer_shutdown, | 156 | .tick_resume = omap2_gp_timer_shutdown, |
157 | }; | 157 | }; |
158 | 158 | ||
159 | static struct property device_disabled = { | ||
160 | .name = "status", | ||
161 | .length = sizeof("disabled"), | ||
162 | .value = "disabled", | ||
163 | }; | ||
164 | |||
165 | static const struct of_device_id omap_timer_match[] __initconst = { | 159 | static const struct of_device_id omap_timer_match[] __initconst = { |
166 | { .compatible = "ti,omap2420-timer", }, | 160 | { .compatible = "ti,omap2420-timer", }, |
167 | { .compatible = "ti,omap3430-timer", }, | 161 | { .compatible = "ti,omap3430-timer", }, |
@@ -203,8 +197,17 @@ static struct device_node * __init omap_get_timer_dt(const struct of_device_id * | |||
203 | of_get_property(np, "ti,timer-secure", NULL))) | 197 | of_get_property(np, "ti,timer-secure", NULL))) |
204 | continue; | 198 | continue; |
205 | 199 | ||
206 | if (!of_device_is_compatible(np, "ti,omap-counter32k")) | 200 | if (!of_device_is_compatible(np, "ti,omap-counter32k")) { |
207 | of_add_property(np, &device_disabled); | 201 | struct property *prop; |
202 | |||
203 | prop = kzalloc(sizeof(*prop), GFP_KERNEL); | ||
204 | if (!prop) | ||
205 | return NULL; | ||
206 | prop->name = "status"; | ||
207 | prop->value = "disabled"; | ||
208 | prop->length = strlen(prop->value); | ||
209 | of_add_property(np, prop); | ||
210 | } | ||
208 | return np; | 211 | return np; |
209 | } | 212 | } |
210 | 213 | ||