From: Joseph Lo <hidden> Date: 2012-08-17 07:04:31
When compiling a kernel that supports only Tegra30 and not Tegra20,
the SDHCI driver will fail to compile since the of_match_device() failure
fallback code unconditinally references soc_data_tegra20, which is only
compiled in when Tegra20 support is enabled.
In Kernel 3.7, both Tegra20 and Tegra30 will only support booting using
device tree, Hence, there is never a need to fall back to using
soc_data_tegra20 if of_mach_device() fails. Instead, make this case an
error. This removes the reference to soc_data_tegra20, and hence solves
the compile failure.
Signed-off-by: Joseph Lo <redacted>
---
drivers/mmc/host/sdhci-tegra.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
From: Stephen Warren <hidden> Date: 2012-08-17 19:01:31
On 08/17/2012 01:04 AM, Joseph Lo wrote:
When compiling a kernel that supports only Tegra30 and not Tegra20,
the SDHCI driver will fail to compile since the of_match_device() failure
fallback code unconditinally references soc_data_tegra20, which is only
compiled in when Tegra20 support is enabled.
In Kernel 3.7, both Tegra20 and Tegra30 will only support booting using
device tree, Hence, there is never a need to fall back to using
soc_data_tegra20 if of_mach_device() fails. Instead, make this case an
error. This removes the reference to soc_data_tegra20, and hence solves
the compile failure.
Tested-by: Stephen Warren <redacted>
(built and tested both Tegra20-only and Tegr30-only kernels with this
applied on top of next-20120816).
From: Joseph Lo <hidden> Date: 2012-08-24 01:40:33
On Sat, 2012-08-18 at 03:01 +0800, Stephen Warren wrote:
On 08/17/2012 01:04 AM, Joseph Lo wrote:
quoted
When compiling a kernel that supports only Tegra30 and not Tegra20,
the SDHCI driver will fail to compile since the of_match_device() failure
fallback code unconditinally references soc_data_tegra20, which is only
compiled in when Tegra20 support is enabled.
In Kernel 3.7, both Tegra20 and Tegra30 will only support booting using
device tree, Hence, there is never a need to fall back to using
soc_data_tegra20 if of_mach_device() fails. Instead, make this case an
error. This removes the reference to soc_data_tegra20, and hence solves
the compile failure.
Tested-by: Stephen Warren <redacted>
(built and tested both Tegra20-only and Tegr30-only kernels with this
applied on top of next-20120816).