ARM: t124: Allow tegra-nvmap device to register
Bibek Basu [Tue, 20 Aug 2013 11:17:34 +0000 (16:17 +0530)]
If CONFIG_TEGRA_DC is disabled, kernel panics because
nvmap_probe is not happening.

Bug 1343356

Change-Id: Ia801780a5bed4b91ed7b9600267c69df8dd8f424
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/263864
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Tested-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

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

index a1a8d00..3ec644b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * arch/arm/mach-tegra/board-ardbeg-panel.c
  *
- * Copyright (c) 2013, NVIDIA Corporation. All rights reserved
+ * Copyright (c) 2013, NVIDIA CORPORATION.  All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -70,9 +70,6 @@ struct platform_device * __init ardbeg_host1x_init(void)
        return pdev;
 }
 
-#ifdef CONFIG_TEGRA_DC
-
-
 /* hdmi related regulators */
 static struct regulator *ardbeg_hdmi_reg;
 static struct regulator *ardbeg_hdmi_pll;
@@ -624,12 +621,3 @@ int __init ardbeg_panel_init(void)
 #endif
        return err;
 }
-#else
-int __init ardbeg_panel_init(void)
-{
-       if (ardbeg_host1x_init())
-               return 0;
-       else
-               return -EINVAL;
-}
-#endif