]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ARM: S3C64XX: Enable power management for disk on Cragganmore
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 30 Dec 2011 04:44:31 +0000 (13:44 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Fri, 20 Jan 2012 00:39:36 +0000 (09:39 +0900)
We can happily let the MMC stack do power management for the MMC card
that is our main disk on Cragganmore so let's enable it.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s3c64xx/mach-crag6410.c

index 97bd8574d4c95995f9fdc5278a1c118a3fcc3d16..894a5092a0dd8f7c761ff0767985f8df6d99f3ac 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/gpio.h>
 #include <linux/leds.h>
 #include <linux/delay.h>
+#include <linux/mmc/host.h>
 #include <linux/regulator/machine.h>
 #include <linux/regulator/fixed.h>
 #include <linux/pwm_backlight.h>
@@ -697,6 +698,7 @@ static struct s3c_sdhci_platdata crag6410_hsmmc0_pdata = {
        .max_width              = 4,
        .cd_type                = S3C_SDHCI_CD_INTERNAL,
        .cfg_gpio               = crag6410_cfg_sdhci0,
+       .host_caps              = MMC_CAP_POWER_OFF_CARD,
 };
 
 static const struct gpio_led gpio_leds[] = {