Commit b976e384 authored by Ladislav Michl's avatar Ladislav Michl Committed by Tony Lindgren

ARM: OMAP: Fix mmc_set_power GPIO usage

Simple simplification...
Signed-off-by: default avatarLadislav Michl <ladis@linux-mips.org>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent f4223ec2
...@@ -24,11 +24,7 @@ ...@@ -24,11 +24,7 @@
static int mmc_set_power(struct device *dev, int slot, int power_on, static int mmc_set_power(struct device *dev, int slot, int power_on,
int vdd) int vdd)
{ {
if (power_on) gpio_set_value(H3_TPS_GPIO_MMC_PWR_EN, power_on);
gpio_direction_output(H3_TPS_GPIO_MMC_PWR_EN, 1);
else
gpio_direction_output(H3_TPS_GPIO_MMC_PWR_EN, 0);
return 0; return 0;
} }
......
...@@ -182,11 +182,7 @@ static struct omap_usb_config nokia770_usb_config __initdata = { ...@@ -182,11 +182,7 @@ static struct omap_usb_config nokia770_usb_config __initdata = {
static int nokia770_mmc_set_power(struct device *dev, int slot, int power_on, static int nokia770_mmc_set_power(struct device *dev, int slot, int power_on,
int vdd) int vdd)
{ {
if (power_on) gpio_set_value(NOKIA770_GPIO_MMC_POWER, power_on);
gpio_set_value(NOKIA770_GPIO_MMC_POWER, 1);
else
gpio_set_value(NOKIA770_GPIO_MMC_POWER, 0);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment