drivers:media:platform:tegra: Fix pll_d clk_get
Wenjia Zhou [Thu, 19 May 2016 01:01:46 +0000 (18:01 -0700)]
NVHOST_VI_IOCTL_ENABLE_TPG need pll_d clk, however when dev_id is present, it
has higher priority than con_id, thus causing clk_get return unexpected result.
Remove dev_id to make sure "pll_d" is returned.

bug 1686313

Change-Id: Iceb12835ffeca3c3fd309fbd496a42974263fc61
Signed-off-by: Wenjia Zhou <wenjiaz@nvidia.com>
Reviewed-on: http://git-master/r/1150109
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>

drivers/media/platform/tegra/vi/tegra_vi.c

index 9fb2ed3..c499926 100644 (file)
@@ -262,7 +262,7 @@ static long vi_ioctl(struct file *file,
                        return -EFAULT;
                }
 
-               clk = clk_get(&tegra_vi->ndev->dev, "pll_d");
+               clk = clk_get(NULL, "pll_d");
                if (IS_ERR(clk))
                        return -EINVAL;