summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/nvhost_syncpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra/host/nvhost_syncpt.c')
-rw-r--r--drivers/video/tegra/host/nvhost_syncpt.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/video/tegra/host/nvhost_syncpt.c b/drivers/video/tegra/host/nvhost_syncpt.c
index 0fa6d3e1ce20..f212e618f950 100644
--- a/drivers/video/tegra/host/nvhost_syncpt.c
+++ b/drivers/video/tegra/host/nvhost_syncpt.c
@@ -77,9 +77,9 @@ u32 nvhost_syncpt_read(struct nvhost_syncpt *sp, u32 id)
{
u32 val;
BUG_ON(!syncpt_op(sp).update_min);
- nvhost_module_busy(&syncpt_to_dev(sp)->mod);
+ nvhost_module_busy(syncpt_to_dev(sp)->dev);
val = syncpt_op(sp).update_min(sp, id);
- nvhost_module_idle(&syncpt_to_dev(sp)->mod);
+ nvhost_module_idle(syncpt_to_dev(sp)->dev);
return val;
}
@@ -90,10 +90,10 @@ u32 nvhost_syncpt_read_wait_base(struct nvhost_syncpt *sp, u32 id)
{
u32 val;
BUG_ON(!syncpt_op(sp).read_wait_base);
- nvhost_module_busy(&syncpt_to_dev(sp)->mod);
+ nvhost_module_busy(syncpt_to_dev(sp)->dev);
syncpt_op(sp).read_wait_base(sp, id);
val = sp->base_val[id];
- nvhost_module_idle(&syncpt_to_dev(sp)->mod);
+ nvhost_module_idle(syncpt_to_dev(sp)->dev);
return val;
}
@@ -113,9 +113,9 @@ void nvhost_syncpt_cpu_incr(struct nvhost_syncpt *sp, u32 id)
void nvhost_syncpt_incr(struct nvhost_syncpt *sp, u32 id)
{
nvhost_syncpt_incr_max(sp, id, 1);
- nvhost_module_busy(&syncpt_to_dev(sp)->mod);
+ nvhost_module_busy(syncpt_to_dev(sp)->dev);
nvhost_syncpt_cpu_incr(sp, id);
- nvhost_module_idle(&syncpt_to_dev(sp)->mod);
+ nvhost_module_idle(syncpt_to_dev(sp)->dev);
}
/**
@@ -150,7 +150,7 @@ int nvhost_syncpt_wait_timeout(struct nvhost_syncpt *sp, u32 id,
}
/* keep host alive */
- nvhost_module_busy(&syncpt_to_dev(sp)->mod);
+ nvhost_module_busy(syncpt_to_dev(sp)->dev);
if (client_managed(id) || !nvhost_syncpt_min_eq_max(sp, id)) {
/* try to read from register */
@@ -226,7 +226,7 @@ int nvhost_syncpt_wait_timeout(struct nvhost_syncpt *sp, u32 id,
nvhost_intr_put_ref(&(syncpt_to_dev(sp)->intr), ref);
done:
- nvhost_module_idle(&syncpt_to_dev(sp)->mod);
+ nvhost_module_idle(syncpt_to_dev(sp)->dev);
return err;
}