diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2012-01-02 11:14:26 +0200 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-01-24 10:50:35 -0800 |
commit | 3a74a9a1c0f6337f5c970de4d890f8f6841dc12f (patch) | |
tree | aea0ca0cac1ec2760ec289fd6b85643db453b3ee /drivers/media | |
parent | 5665ef5e26fa8e3fd802153af908a39ea64c55c7 (diff) |
video: tegra: host: Access nvhost_master via drvdata
Use standard drvdata interface for storing and accessing nvhost_master.
Reviewed-on: http://git-master/r/72846
Change-Id: I191987c8f6d313a6ede9b59f723269cb6a197e8a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/76815
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/tegra/nvavp/nvavp_dev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/tegra/nvavp/nvavp_dev.c b/drivers/media/video/tegra/nvavp/nvavp_dev.c index 1c274297b3e1..bf4bac987677 100644 --- a/drivers/media/video/tegra/nvavp/nvavp_dev.c +++ b/drivers/media/video/tegra/nvavp/nvavp_dev.c @@ -1024,7 +1024,7 @@ static int tegra_nvavp_open(struct inode *inode, struct file *filp) filp->private_data = clientctx; - nvhost_module_busy(nvavp->nvhost_dev->host->dev); + nvhost_module_busy(nvhost_get_host(nvavp->nvhost_dev)->dev); mutex_unlock(&nvavp->open_lock); return ret; @@ -1039,7 +1039,7 @@ static int tegra_nvavp_release(struct inode *inode, struct file *filp) dev_dbg(&nvavp->nvhost_dev->dev, "%s: ++\n", __func__); filp->private_data = NULL; - nvhost_module_idle(nvavp->nvhost_dev->host->dev); + nvhost_module_idle(nvhost_get_host(nvavp->nvhost_dev)->dev); mutex_lock(&nvavp->open_lock); @@ -1124,7 +1124,7 @@ static int tegra_nvavp_probe(struct nvhost_device *ndev) memset(nvavp, 0, sizeof(*nvavp)); - nvavp->nvhost_syncpt = &ndev->host->syncpt; + nvavp->nvhost_syncpt = &nvhost_get_host(ndev)->syncpt; if (!nvavp->nvhost_syncpt) { dev_err(&ndev->dev, "cannot get syncpt handle\n"); ret = -ENOENT; |