Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272902
b: refs/heads/master
c: b7b5bc9
h: refs/heads/master
v: v3
  • Loading branch information
Benoit Cousson authored and Kevin Hilman committed Oct 4, 2011
1 parent 0428ff9 commit 952aa3a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 766e7afc38754e4bdcbf948fa523af8999a6296f
refs/heads/master: b7b5bc91d422ff51ff84dfd5949e9d2f17a550c8
19 changes: 18 additions & 1 deletion trunk/arch/arm/plat-omap/omap_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@
static int omap_device_register(struct platform_device *pdev);
static int omap_early_device_register(struct platform_device *pdev);

static struct omap_device_pm_latency omap_default_latency[] = {
{
.deactivate_func = omap_device_idle_hwmods,
.activate_func = omap_device_enable_hwmods,
.flags = OMAP_DEVICE_LATENCY_AUTO_ADJUST,
}
};

/* Private functions */

/**
Expand Down Expand Up @@ -510,8 +518,17 @@ struct platform_device *omap_device_build_ss(const char *pdev_name, int pdev_id,
if (ret)
goto odbs_exit3;

od->pm_lats = pm_lats;
if (!pm_lats) {
pm_lats = omap_default_latency;
pm_lats_cnt = ARRAY_SIZE(omap_default_latency);
}

od->pm_lats_cnt = pm_lats_cnt;
od->pm_lats = kmemdup(pm_lats,
sizeof(struct omap_device_pm_latency) * pm_lats_cnt,
GFP_KERNEL);
if (!od->pm_lats)
goto odbs_exit3;

for (i = 0; i < oh_cnt; i++) {
hwmods[i]->od = od;
Expand Down

0 comments on commit 952aa3a

Please sign in to comment.