diff options
Diffstat (limited to 'arch/arm/plat-omap/dmtimer.c')
-rw-r--r-- | arch/arm/plat-omap/dmtimer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index 15e7882f371..3b0cfeb33d0 100644 --- a/arch/arm/plat-omap/dmtimer.c +++ b/arch/arm/plat-omap/dmtimer.c | |||
@@ -347,11 +347,12 @@ EXPORT_SYMBOL_GPL(omap_dm_timer_start); | |||
347 | int omap_dm_timer_stop(struct omap_dm_timer *timer) | 347 | int omap_dm_timer_stop(struct omap_dm_timer *timer) |
348 | { | 348 | { |
349 | unsigned long rate = 0; | 349 | unsigned long rate = 0; |
350 | struct dmtimer_platform_data *pdata = timer->pdev->dev.platform_data; | 350 | struct dmtimer_platform_data *pdata; |
351 | 351 | ||
352 | if (unlikely(!timer)) | 352 | if (unlikely(!timer)) |
353 | return -EINVAL; | 353 | return -EINVAL; |
354 | 354 | ||
355 | pdata = timer->pdev->dev.platform_data; | ||
355 | if (!pdata->needs_manual_reset) | 356 | if (!pdata->needs_manual_reset) |
356 | rate = clk_get_rate(timer->fclk); | 357 | rate = clk_get_rate(timer->fclk); |
357 | 358 | ||