ARM: tegra: roth: Check if board is Roth
Shobek Sam Attupurath [Fri, 15 Feb 2013 07:17:11 +0000 (12:17 +0530)]
Check whether board is roth before wifi power on

Bug 1236452

Change-Id: Iaedeb2a956f20795fd3d0514c4021ec2003b1bd7
Signed-off-by: Shobek Sam Attupurath <sattupurath@nvidia.com>
Reviewed-on: http://git-master/r/201045
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

arch/arm/mach-tegra/board-roth-sdhci.c

index 2539171..e48d7fc 100644 (file)
@@ -406,6 +406,9 @@ static int __init roth_wifi_init(void)
 #ifdef CONFIG_TEGRA_PREPOWER_WIFI
 static int __init roth_wifi_prepower(void)
 {
+       if (!machine_is_roth())
+               return 0;
+
        roth_wifi_power(1);
 
        return 0;