Skip to content

Commit

Permalink
ARM: OMAP1: Fix mmc_set_power GPIO usage
Browse files Browse the repository at this point in the history
Simple simplification...

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Ladislav Michl authored and Tony Lindgren committed Apr 23, 2009
1 parent 6a32607 commit bac5b29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions arch/arm/mach-omap1/board-h3-mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@
static int mmc_set_power(struct device *dev, int slot, int power_on,
int vdd)
{
if (power_on)
gpio_direction_output(H3_TPS_GPIO_MMC_PWR_EN, 1);
else
gpio_direction_output(H3_TPS_GPIO_MMC_PWR_EN, 0);

gpio_set_value(H3_TPS_GPIO_MMC_PWR_EN, power_on);
return 0;
}

Expand Down
6 changes: 1 addition & 5 deletions arch/arm/mach-omap1/board-nokia770.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,7 @@ static struct omap_usb_config nokia770_usb_config __initdata = {
static int nokia770_mmc_set_power(struct device *dev, int slot, int power_on,
int vdd)
{
if (power_on)
gpio_set_value(NOKIA770_GPIO_MMC_POWER, 1);
else
gpio_set_value(NOKIA770_GPIO_MMC_POWER, 0);

gpio_set_value(NOKIA770_GPIO_MMC_POWER, power_on);
return 0;
}

Expand Down

0 comments on commit bac5b29

Please sign in to comment.