video: tegra: dtv: Fixed clk disabling issue
Adam Jiang [Thu, 14 Jun 2012 02:29:23 +0000 (11:29 +0900)]
APB clock for dtv logic block should be recorded by dtv_ctx->clk
hanlder. Otherwise, kernel will trigger a NULL point error in suspend.

Fixed Bug 1011149

Change-Id: I5d342ab6fc8ffb71211e370d304b17d5d44eef20
Signed-off-by: Adam Jiang <chaoj@nvidia.com>
Reviewed-on: http://git-master/r/108743
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

drivers/media/video/tegra/tegra_dtv.c

index a2f51c5..a6e74a2 100644 (file)
@@ -922,6 +922,7 @@ static int tegra_dtv_probe(struct platform_device *pdev)
                ret = -EIO;
                goto fail_no_clk;
        }
+       dtv_ctx->clk = clk;
        ret = clk_enable(clk);
        if (ret < 0) {
                dev_err(&pdev->dev, "cannot enable clk for tegra_dtv.\n");