summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2010-06-07 09:17:17 -0700
committerGary King <gking@nvidia.com>2010-06-08 11:30:26 -0700
commit3bacaf52fbdfb22f8ddbc76f3578183140ff2a07 (patch)
treef51d02596f9e6cc36f44ae4b6d6234acc8d20be6
parent0a4afffd67bccf9fb9c771cf2579c6e7c4451dec (diff)
[ARM/tegra] board-nvodm: fix sdio instance filtering
a NULL pointer check for the ODM kit SDIO property was incorrectly entered as a check against the instance ID, which resulted in SDHCI instance 0 never being registered. bug 693414 Change-Id: I29b21d9d215ec1aeafd3d22a4468e0960c52621b Reviewed-on: http://git-master/r/2189 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/board-nvodm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-nvodm.c b/arch/arm/mach-tegra/board-nvodm.c
index 6ad8d6530b22..05976eaa1d65 100644
--- a/arch/arm/mach-tegra/board-nvodm.c
+++ b/arch/arm/mach-tegra/board-nvodm.c
@@ -302,7 +302,7 @@ static void __init tegra_setup_sdhci(void) {
for (i=0; i<ARRAY_SIZE(tegra_sdhci_platform); i++) {
const NvOdmQuerySdioInterfaceProperty *prop;
prop = NvOdmQueryGetSdioInterfaceProperty(i);
- if (!i || prop->usage==NvOdmQuerySdioSlotUsage_unused)
+ if (!prop || prop->usage==NvOdmQuerySdioSlotUsage_unused)
continue;
plat = &tegra_sdhci_platform[i];