ARM: tegra: ardbeg: t12x: Do not use DT for host1x
Chao Xu [Fri, 12 Jul 2013 18:45:51 +0000 (11:45 -0700)]
Change-Id: Id9e95ed8c1e34ffc8aa7651c981ce04ddfef0a43
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/248506

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

index 474bded..a95ef3b 100644 (file)
@@ -52,16 +52,15 @@ struct platform_device * __init ardbeg_host1x_init(void)
        struct platform_device *pdev = NULL;
 
 #ifdef CONFIG_TEGRA_GRHOST
-       if (!of_have_populated_dt()) {
 #ifdef CONFIG_ARCH_TEGRA_11x_SOC
+       if (!of_have_populated_dt())
                pdev = tegra11_register_host1x_devices();
+       else
+               pdev = to_platform_device(bus_find_device_by_name(
+                               &platform_bus_type, NULL, "host1x"));
 #else
-               pdev = tegra12_register_host1x_devices();
+       pdev = tegra12_register_host1x_devices();
 #endif
-       } else {
-               pdev = to_platform_device(bus_find_device_by_name(
-                       &platform_bus_type, NULL, "host1x"));
-       }
 
        if (!pdev) {
                pr_err("host1x devices registration failed\n");