aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sunxi-mmc.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2014-08-20 09:39:20 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2014-09-09 07:59:17 -0400
commit3df01a931348c4c295c0e8ace17d4d764d93ad2c (patch)
treed270725632a72aa1055c47262d3a3c292a50b580 /drivers/mmc/host/sunxi-mmc.c
parent066173b6436dfc57a96b2d940f4e727fe8131261 (diff)
mmc: sunxi: Declare ERASE capability
Declare ERASE capability so we can use filesystems with the discard option and the fstrim tool. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sunxi-mmc.c')
-rw-r--r--drivers/mmc/host/sunxi-mmc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
index dafe5001a46e..d1663b3c4143 100644
--- a/drivers/mmc/host/sunxi-mmc.c
+++ b/drivers/mmc/host/sunxi-mmc.c
@@ -990,7 +990,8 @@ static int sunxi_mmc_probe(struct platform_device *pdev)
990 /* 400kHz ~ 50MHz */ 990 /* 400kHz ~ 50MHz */
991 mmc->f_min = 400000; 991 mmc->f_min = 400000;
992 mmc->f_max = 50000000; 992 mmc->f_max = 50000000;
993 mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED; 993 mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED |
994 MMC_CAP_ERASE;
994 995
995 ret = mmc_of_parse(mmc); 996 ret = mmc_of_parse(mmc);
996 if (ret) 997 if (ret)