tegra: fix typo in pre-power wifi code
Mursalin Akon [Mon, 16 Apr 2012 19:17:35 +0000 (12:17 -0700)]
fix typo in pre-power wifi code

Bug 956238

Change-Id: Iee794da508d39131e3166bba71b1c46c60d19a3b
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/96821
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

arch/arm/mach-tegra/board-cardhu-sdhci.c
arch/arm/mach-tegra/board-enterprise-sdhci.c
arch/arm/mach-tegra/board-harmony.c
arch/arm/mach-tegra/board-kai-sdhci.c
arch/arm/mach-tegra/board-ventana-sdhci.c
arch/arm/mach-tegra/board-whistler-sdhci.c

index 1dfe4ee..f497a5c 100644 (file)
@@ -286,7 +286,7 @@ static int __init cardhu_wifi_init(void)
        return 0;
 }
 
-#ifdef TEGRA_PREPOWER_WIFI
+#ifdef CONFIG_TEGRA_PREPOWER_WIFI
 static int __init cardhu_wifi_prepower(void)
 {
        if (!machine_is_cardhu())
index e7c2c57..a9d2861 100644 (file)
@@ -230,10 +230,10 @@ static int enterprise_wifi_reset(int on)
        return 0;
 }
 
-#ifdef TEGRA_PREPOWER_WIFI
+#ifdef CONFIG_TEGRA_PREPOWER_WIFI
 static int __init enterprise_wifi_prepower(void)
 {
-       if (!machine_is_enterprise())
+       if (!machine_is_tegra_enterprise())
                return 0;
 
        enterprise_wifi_power(1);
index 4c18a06..9bf8cde 100644 (file)
@@ -425,7 +425,7 @@ static struct tegra_sdhci_platform_data sdhci_pdata4 = {
        .is_8bit        = 1,
 };
 
-#ifdef TEGRA_PREPOWER_WIFI
+#ifdef CONFIG_TEGRA_PREPOWER_WIFI
 static int __init harmony_wifi_prepower(void)
 {
         int gpio_pwr, gpio_rst;
index 18a7023..1d09d4e 100644 (file)
@@ -234,7 +234,7 @@ static int kai_wifi_power(int power_on)
        return 0;
 }
 
-#ifdef TEGRA_PREPOWER_WIFI
+#ifdef CONFIG_TEGRA_PREPOWER_WIFI
 static int __init kai_wifi_prepower(void)
 {
        if (!machine_is_kai())
index 1e3374e..32d8678 100644 (file)
@@ -231,7 +231,7 @@ static int ventana_wifi_reset(int on)
        return 0;
 }
 
-#ifdef TEGRA_PREPOWER_WIFI
+#ifdef CONFIG_TEGRA_PREPOWER_WIFI
 static int __init ventana_wifi_prepower(void)
 {
        if (!machine_is_ventana())
index e3e2fc2..e3a73ca 100644 (file)
@@ -223,7 +223,7 @@ static struct platform_device tegra_sdhci_device3 = {
        },
 };
 
-#ifdef TEGRA_PREPOWER_WIFI
+#ifdef CONFIG_TEGRA_PREPOWER_WIFI
 static int __init whistler_wifi_prepower(void)
 {
        if (!machine_is_whistler())