ARM: tegra: loki: add TEGRA_GRHOST=n support
siddardha naraharisetti [Wed, 18 Sep 2013 20:52:39 +0000 (13:52 -0700)]
Update loki_host1x_init to support TEGRA_GRHOST=n

Bug 1357903

Change-Id: Ia0f0eec46fe0c6c3fd0e8c10059bf473619642bf
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
Reviewed-on: http://git-master/r/276416
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

arch/arm/mach-tegra/board-loki-panel.c

index 65be52f..d0fe2e1 100644 (file)
@@ -43,12 +43,14 @@ struct platform_device * __init loki_host1x_init(void)
 {
        struct platform_device *pdev = NULL;
 
+#ifdef CONFIG_TEGRA_GRHOST
        pdev = tegra12_register_host1x_devices();
 
        if (!pdev) {
                pr_err("host1x devices registration failed\n");
                return NULL;
        }
+#endif
        return pdev;
 }