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>
This commit is contained in:
parent
5601aaf73e
commit
a2d1086de6
2 changed files with 1 additions and 3 deletions
|
@ -415,8 +415,7 @@ static int ioctl_do_sanitize(struct mmc_card *card)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (!(mmc_can_sanitize(card) &&
|
if (!mmc_can_sanitize(card)) {
|
||||||
(card->host->caps2 & MMC_CAP2_SANITIZE))) {
|
|
||||||
pr_warn("%s: %s - SANITIZE is not supported\n",
|
pr_warn("%s: %s - SANITIZE is not supported\n",
|
||||||
mmc_hostname(card->host), __func__);
|
mmc_hostname(card->host), __func__);
|
||||||
err = -EOPNOTSUPP;
|
err = -EOPNOTSUPP;
|
||||||
|
|
|
@ -281,7 +281,6 @@ struct mmc_host {
|
||||||
#define MMC_CAP2_PACKED_CMD (MMC_CAP2_PACKED_RD | \
|
#define MMC_CAP2_PACKED_CMD (MMC_CAP2_PACKED_RD | \
|
||||||
MMC_CAP2_PACKED_WR)
|
MMC_CAP2_PACKED_WR)
|
||||||
#define MMC_CAP2_NO_PRESCAN_POWERUP (1 << 14) /* Don't power up before scan */
|
#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 */
|
mmc_pm_flag_t pm_caps; /* supported pm features */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue