diff options
author | Rakesh Goyal <rgoyal@nvidia.com> | 2012-02-10 19:44:55 +0530 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-02-15 00:59:10 -0800 |
commit | 48c516dc71c28bb1eae8e5e451e22c467cc139b1 (patch) | |
tree | e9cbea6a3685b20a0d81d8c25213242b9198e2e4 /arch/arm/mach-tegra/board-kai-sdhci.c | |
parent | 077ab49b44e20ad100d9bd46533733d1d024573a (diff) |
arm: tegra: kai: make vdd_comm rail always on
vdd_comm should not 0 when system is in suspend state.
This power rail need to be always on for functionilities like
"wake on wireless".
Bug 937381
Change-Id: I0a24bfdac1c8c69c3a0cbe1b333c05dbb933c2b6
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/83135
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-kai-sdhci.c')
-rw-r--r-- | arch/arm/mach-tegra/board-kai-sdhci.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/arm/mach-tegra/board-kai-sdhci.c b/arch/arm/mach-tegra/board-kai-sdhci.c index 7f320fab1011..f485cc91e939 100644 --- a/arch/arm/mach-tegra/board-kai-sdhci.c +++ b/arch/arm/mach-tegra/board-kai-sdhci.c @@ -23,7 +23,6 @@ #include <linux/err.h> #include <linux/mmc/host.h> #include <linux/wl12xx.h> -#include <linux/regulator/consumer.h> #include <asm/mach-types.h> #include <mach/irqs.h> @@ -52,7 +51,6 @@ static int kai_wifi_status_register( return 0; } -static struct regulator *vdd_com = NULL; static struct wl12xx_platform_data kai_wlan_data __initdata = { .irq = TEGRA_GPIO_TO_IRQ(KAI_WLAN_IRQ), @@ -212,18 +210,7 @@ int kai_wifi_power(int power_on) { pr_err("Powering %s wifi\n", (power_on ? "on" : "off")); - if (vdd_com == NULL) { - vdd_com = regulator_get(NULL, "vdd_com_bd"); - if (WARN_ON(IS_ERR(vdd_com))) { - pr_err("%s: couldn't get regulator vdd_com: %ld\n", - __func__, PTR_ERR(vdd_com)); - return -ENODEV; - } - } - if (power_on) { - regulator_enable(vdd_com); - mdelay(100); gpio_set_value(KAI_WLAN_EN, 1); mdelay(15); gpio_set_value(KAI_WLAN_EN, 0); @@ -232,7 +219,6 @@ int kai_wifi_power(int power_on) mdelay(70); } else { gpio_set_value(KAI_WLAN_EN, 0); - regulator_disable(vdd_com); } return 0; |