summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/gr3d/gr3d.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra/host/gr3d/gr3d.c')
-rw-r--r--drivers/video/tegra/host/gr3d/gr3d.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/video/tegra/host/gr3d/gr3d.c b/drivers/video/tegra/host/gr3d/gr3d.c
index 5338ce9edb7a..3cc041d3b3bb 100644
--- a/drivers/video/tegra/host/gr3d/gr3d.c
+++ b/drivers/video/tegra/host/gr3d/gr3d.c
@@ -147,13 +147,7 @@ void nvhost_3dctx_put(struct nvhost_hwctx *ctx)
int nvhost_gr3d_prepare_power_off(struct nvhost_device *dev)
{
- struct nvhost_hwctx *cur_ctx = dev->channel->cur_ctx;
- int err = 0;
- if (cur_ctx)
- err = host1x_save_context(dev,
- to_host1x_hwctx_handler(cur_ctx->h)->syncpt);
-
- return err;
+ return nvhost_channel_save_context(dev->channel);
}
enum gr3d_ip_ver {