mmc: card: Remove host cap MMC_CAP2_SANITIZE
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 16 Dec 2013 13:37:26 +0000 (14:37 +0100)
committerChris Ball <chris@printf.net>
Fri, 14 Feb 2014 03:58:27 +0000 (22:58 -0500)
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>
drivers/mmc/card/block.c
include/linux/mmc/host.h

index 7b5424f398ace049d0a6c4be9724a191c7ad4f54..c2187d5e90703d636d924f9e1c9952f0f8f81cf9 100644 (file)
@@ -415,8 +415,7 @@ static int ioctl_do_sanitize(struct mmc_card *card)
 {
        int err;
 
-       if (!(mmc_can_sanitize(card) &&
-             (card->host->caps2 & MMC_CAP2_SANITIZE))) {
+       if (!mmc_can_sanitize(card)) {
                        pr_warn("%s: %s - SANITIZE is not supported\n",
                                mmc_hostname(card->host), __func__);
                        err = -EOPNOTSUPP;
index 2a139b2bdb9e93e54d8f68a906a1701a7197dd0b..40f832e5db400dc002b7171e99d0e0e3f1af4e9c 100644 (file)
@@ -281,7 +281,6 @@ struct mmc_host {
 #define MMC_CAP2_PACKED_CMD    (MMC_CAP2_PACKED_RD | \
                                 MMC_CAP2_PACKED_WR)
 #define MMC_CAP2_NO_PRESCAN_POWERUP (1 << 14)  /* Don't power up before scan */
-#define MMC_CAP2_SANITIZE      (1 << 15)               /* Support Sanitize */
 
        mmc_pm_flag_t           pm_caps;        /* supported pm features */