summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-nvodm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/board-nvodm.c')
-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];