aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/card
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2013-12-16 08:37:26 -0500
committerChris Ball <chris@printf.net>2014-02-13 22:58:27 -0500
commita2d1086de6cc3ae2378d9db8b92712911c9e5fef (patch)
tree20e4be3f6b56f7e5fb5d646dcc2a777946acee01 /drivers/mmc/card
parent5601aaf73e5c2f0aa5e3607fee7b7d3511edfea9 (diff)
mmc: card: Remove host cap MMC_CAP2_SANITIZE
There is no need for keeping a host cap for MMC_CAP2_SANITIZE, instead we just make the feature default available. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/mmc/card')
-rw-r--r--drivers/mmc/card/block.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 7b5424f398ac..c2187d5e9070 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -415,8 +415,7 @@ static int ioctl_do_sanitize(struct mmc_card *card)
415{ 415{
416 int err; 416 int err;
417 417
418 if (!(mmc_can_sanitize(card) && 418 if (!mmc_can_sanitize(card)) {
419 (card->host->caps2 & MMC_CAP2_SANITIZE))) {
420 pr_warn("%s: %s - SANITIZE is not supported\n", 419 pr_warn("%s: %s - SANITIZE is not supported\n",
421 mmc_hostname(card->host), __func__); 420 mmc_hostname(card->host), __func__);
422 err = -EOPNOTSUPP; 421 err = -EOPNOTSUPP;