mmc: dw_mmc: Use core to handle absent write protect line
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 6 May 2015 18:31:22 +0000 (20:31 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Jun 2015 07:07:05 +0000 (09:07 +0200)
commiteff8f2f5df1c509c873cdc70c84eb2ee75b41e65
treefc345d03072edc1dcd824e12b19b0b65602a18d1
parent0293efddaddfcbbbf01ce3537549bc21fcca0a50
mmc: dw_mmc: Use core to handle absent write protect line

Use the new MMC_CAP2_NO_WRITE_PROTECT to let the core handle the case where
no write protect line is present instead of having custom driver code to
handle it.

dw_mci_of_get_slot_quirks() is slightly refactored to directly modify the
mmc_host capabilities instead of returning a quirk mask.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c
drivers/mmc/host/dw_mmc.h
include/linux/mmc/dw_mmc.h