From: Chaotian Jing Date: Sun, 14 Feb 2016 18:31:00 +0000 (+0800) Subject: mmc: mediatek: add SD write protect support X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8d53e41238a860fa27c6d312adde16148d2ffe07;p=linux-beck.git mmc: mediatek: add SD write protect support use mmc core layer's API to support sd write protect Signed-off-by: Chaotian Jing Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 82a97ac4e956..f01972eb57e9 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/drivers/mmc/host/mtk-sd.c @@ -35,6 +35,7 @@ #include #include #include +#include #define MAX_BD_NUM 1024 @@ -1452,6 +1453,7 @@ static struct mmc_host_ops mt_msdc_ops = { .pre_req = msdc_pre_req, .request = msdc_ops_request, .set_ios = msdc_ops_set_ios, + .get_ro = mmc_gpio_get_ro, .start_signal_voltage_switch = msdc_ops_switch_volt, .card_busy = msdc_card_busy, .execute_tuning = msdc_execute_tuning,