From: Guennadi Liakhovetski Date: Wed, 19 May 2010 18:36:13 +0000 (+0000) Subject: sh: disable SD-card write-protection detection on kfr2r09 X-Git-Tag: v2.6.35-rc1~414^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8f4b3036d1b9bdb6f5fa0b920e0163d64a990327;p=karo-tx-linux.git sh: disable SD-card write-protection detection on kfr2r09 kfr2r09 board has a micro-SD card slot, therefore card write-protection detection cannot work there, disable it. Signed-off-by: Guennadi Liakhovetski Acked-by: Ian Molton Signed-off-by: Paul Mundt --- diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c index 95850aa1ee3c..68994a163f6c 100644 --- a/arch/sh/boards/mach-kfr2r09/setup.c +++ b/arch/sh/boards/mach-kfr2r09/setup.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -358,8 +359,9 @@ static struct resource kfr2r09_sh_sdhi0_resources[] = { }; static struct sh_mobile_sdhi_info sh7724_sdhi0_data = { - .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, - .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, + .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, + .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, + .tmio_flags = TMIO_MMC_WRPROTECT_DISABLE, }; static struct platform_device kfr2r09_sh_sdhi0_device = {