diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2012-11-07 10:40:18 +0200 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-11-21 08:47:24 -0800 |
commit | d72da6b92613af983bbe6d5a19595fb3c1eac564 (patch) | |
tree | 6fae3045ac397e4a9a2c54355e96c049dcf175ce /arch/arm/mach-tegra/board-cardhu.c | |
parent | 07a3f9874846c14a12fe11462a2cbd715cb0778d (diff) |
ARM: tegra: Remove DT code when DT not supported
L4T and some SoCs does not have support device trees, but the kernel
configuration still enables CONFIG_USE_OF.
Disable CONFIG_USE_OF in Kconfig. It is enabled already by all
defconfigs where DT is really supported. This allows drivers to
migrate to device trees gracefully. Also adds CONFIG_USE_OF back to
tegra3_android_defconfig as it was accidentally removed.
Change-Id: I2edb7128f43d2cf23fc3d599f3c9964830548479
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/161941
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu.c')
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu.c b/arch/arm/mach-tegra/board-cardhu.c index 1cc4b9d5d103..a453f1860e44 100644 --- a/arch/arm/mach-tegra/board-cardhu.c +++ b/arch/arm/mach-tegra/board-cardhu.c @@ -1356,8 +1356,10 @@ static void __init tegra_cardhu_dt_init(void) { tegra_cardhu_init(); +#ifdef CONFIG_USE_OF of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); +#endif } static void __init tegra_cardhu_reserve(void) |