Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: tmio: remove TMIO_MMC_WRPROTECT_DISABLE

The use of this flag has been replaced with MMC_CAP2_NO_WRITE_PROTECT.
No platform defines this flag any more. Remove.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

authored by

Masahiro Yamada and committed by
Ulf Hansson
218f6024 7c53b797

+2 -4
+2 -3
drivers/mmc/host/tmio_mmc_core.c
··· 1061 1061 static int tmio_mmc_get_ro(struct mmc_host *mmc) 1062 1062 { 1063 1063 struct tmio_mmc_host *host = mmc_priv(mmc); 1064 - struct tmio_mmc_data *pdata = host->pdata; 1065 1064 1066 - return !((pdata->flags & TMIO_MMC_WRPROTECT_DISABLE) || 1067 - (sd_ctrl_read16_and_16_as_32(host, CTL_STATUS) & TMIO_STAT_WRPROTECT)); 1065 + return !(sd_ctrl_read16_and_16_as_32(host, CTL_STATUS) & 1066 + TMIO_STAT_WRPROTECT); 1068 1067 } 1069 1068 1070 1069 static int tmio_multi_io_quirk(struct mmc_card *card,
-1
include/linux/mfd/tmio.h
··· 36 36 } while (0) 37 37 38 38 /* tmio MMC platform flags */ 39 - #define TMIO_MMC_WRPROTECT_DISABLE BIT(0) 40 39 /* 41 40 * Some controllers can support a 2-byte block size when the bus width 42 41 * is configured in 4-bit mode.