Skip to content

Commit c16ae1e

Browse files
Benoit Coussontmlind
authored andcommitted
ARM: OMAP2+: timer: Remove omap_device_pm_latency
Remove the structure since a default one is now available. Signed-off-by: Benoit Cousson <[email protected]> Cc: Kevin Hilman <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 2847111 commit c16ae1e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

arch/arm/mach-omap2/timer.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -408,14 +408,6 @@ static int omap2_dm_timer_set_src(struct platform_device *pdev, int source)
408408
return ret;
409409
}
410410

411-
struct omap_device_pm_latency omap2_dmtimer_latency[] = {
412-
{
413-
.deactivate_func = omap_device_idle_hwmods,
414-
.activate_func = omap_device_enable_hwmods,
415-
.flags = OMAP_DEVICE_LATENCY_AUTO_ADJUST,
416-
},
417-
};
418-
419411
/**
420412
* omap_timer_init - build and register timer device with an
421413
* associated timer hwmod
@@ -477,9 +469,7 @@ static int __init omap_timer_init(struct omap_hwmod *oh, void *unused)
477469
pdata->get_context_loss_count = omap_pm_get_dev_context_loss_count;
478470
#endif
479471
pdev = omap_device_build(name, id, oh, pdata, sizeof(*pdata),
480-
omap2_dmtimer_latency,
481-
ARRAY_SIZE(omap2_dmtimer_latency),
482-
0);
472+
NULL, 0, 0);
483473

484474
if (IS_ERR(pdev)) {
485475
pr_err("%s: Can't build omap_device for %s: %s.\n",

0 commit comments

Comments
 (0)