summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorMike Rapoport <mike@compulab.co.il>2011-03-02 14:34:06 +0200
committerColin Cross <ccross@android.com>2011-03-03 13:57:31 -0800
commitd5fdafd38ca0c28c4648909ce0afd0a5420309ca (patch)
tree88289a5e28ae24381af7fd1c69712ae8bca7f165 /arch/arm
parentb96cc7fe190b9356633c70afae61ee0637b000ee (diff)
downloadop-kernel-dev-d5fdafd38ca0c28c4648909ce0afd0a5420309ca.zip
op-kernel-dev-d5fdafd38ca0c28c4648909ce0afd0a5420309ca.tar.gz
ARM: tegra: trimslice: initialize PCI-e only when running on TrimSlice
Currently tegra_pcie_init is effectively called as subsys_initcall. With multiplatform kernel this may cause hangs on boards that don't intend to support Tegra2 PCI-e. Ensure that TrimSlice board code initializes PCI-e only when actually running on the TrimSlice. Signed-off-by: Mike Rapoport <mike@compulab.co.il> Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-tegra/board-trimslice.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-trimslice.c b/arch/arm/mach-tegra/board-trimslice.c
index 0f3081a..7be7d4a 100644
--- a/arch/arm/mach-tegra/board-trimslice.c
+++ b/arch/arm/mach-tegra/board-trimslice.c
@@ -79,6 +79,9 @@ static __initdata struct tegra_clk_init_table trimslice_clk_init_table[] = {
static int __init tegra_trimslice_pci_init(void)
{
+ if (!machine_is_trimslice())
+ return 0;
+
return tegra_pcie_init(true, true);
}
subsys_initcall(tegra_trimslice_pci_init);
OpenPOWER on IntegriCloud