diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-03-16 04:53:40 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-03-17 01:16:29 -0400 |
commit | c078c62a752872fb83f56e41794dd61d5ea570a0 (patch) | |
tree | d3e19fdd3f87e37272e58615bb11502069243ea7 /arch/arm/mach-shmobile | |
parent | 84f11d5b1f2abc0e22895b7e12e037f0ec03caeb (diff) |
mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info v2
84f11d5b1f2abc0e22895b7e12e037f0ec03caeb
(mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info)
replaced sh_mobile_sdhi_info to tmio_mmc_data, but it was missing
to replace board-ape6evm / board-mackerel.
Kernel build will be failed without this patch.
>> arch/arm/mach-shmobile/board-ape6evm.c:176:21: error: \
variable 'sdhi0_pdata' has initializer but incomplete type
static const struct sh_mobile_sdhi_info sdhi0_pdata __initconst = {
^
>> arch/arm/mach-shmobile/board-ape6evm.c:177:2: error: \
unknown field 'tmio_flags' specified in initializer
.tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE,
^
...
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/board-ape6evm.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 30 |
2 files changed, 21 insertions, 21 deletions
diff --git a/arch/arm/mach-shmobile/board-ape6evm.c b/arch/arm/mach-shmobile/board-ape6evm.c index 444f22d370f0..52c9605ad611 100644 --- a/arch/arm/mach-shmobile/board-ape6evm.c +++ b/arch/arm/mach-shmobile/board-ape6evm.c | |||
@@ -173,9 +173,9 @@ static const struct resource mmcif0_resources[] __initconst = { | |||
173 | }; | 173 | }; |
174 | 174 | ||
175 | /* SDHI0 */ | 175 | /* SDHI0 */ |
176 | static const struct sh_mobile_sdhi_info sdhi0_pdata __initconst = { | 176 | static const struct tmio_mmc_data sdhi0_pdata __initconst = { |
177 | .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE, | 177 | .flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE, |
178 | .tmio_caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ, | 178 | .capabilities = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ, |
179 | }; | 179 | }; |
180 | 180 | ||
181 | static const struct resource sdhi0_resources[] __initconst = { | 181 | static const struct resource sdhi0_resources[] __initconst = { |
@@ -184,9 +184,9 @@ static const struct resource sdhi0_resources[] __initconst = { | |||
184 | }; | 184 | }; |
185 | 185 | ||
186 | /* SDHI1 */ | 186 | /* SDHI1 */ |
187 | static const struct sh_mobile_sdhi_info sdhi1_pdata __initconst = { | 187 | static const struct tmio_mmc_data sdhi1_pdata __initconst = { |
188 | .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE, | 188 | .flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_WRPROTECT_DISABLE, |
189 | .tmio_caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | | 189 | .capabilities = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | |
190 | MMC_CAP_NEEDS_POLL, | 190 | MMC_CAP_NEEDS_POLL, |
191 | }; | 191 | }; |
192 | 192 | ||
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index a1c1dfb6a67a..88e4f457193b 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -972,11 +972,11 @@ static struct platform_device nand_flash_device = { | |||
972 | }; | 972 | }; |
973 | 973 | ||
974 | /* SDHI0 */ | 974 | /* SDHI0 */ |
975 | static struct sh_mobile_sdhi_info sdhi0_info = { | 975 | static struct tmio_mmc_data sdhi0_info = { |
976 | .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, | 976 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI0_TX, |
977 | .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, | 977 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI0_RX, |
978 | .tmio_flags = TMIO_MMC_USE_GPIO_CD, | 978 | .flags = TMIO_MMC_USE_GPIO_CD, |
979 | .tmio_caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ, | 979 | .capabilities = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ, |
980 | .cd_gpio = 172, | 980 | .cd_gpio = 172, |
981 | }; | 981 | }; |
982 | 982 | ||
@@ -1011,11 +1011,11 @@ static struct platform_device sdhi0_device = { | |||
1011 | /* SDHI1 */ | 1011 | /* SDHI1 */ |
1012 | 1012 | ||
1013 | /* GPIO 41 can trigger IRQ8, but it is used by USBHS1, we have to poll */ | 1013 | /* GPIO 41 can trigger IRQ8, but it is used by USBHS1, we have to poll */ |
1014 | static struct sh_mobile_sdhi_info sdhi1_info = { | 1014 | static struct tmio_mmc_data sdhi1_info = { |
1015 | .dma_slave_tx = SHDMA_SLAVE_SDHI1_TX, | 1015 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI1_TX, |
1016 | .dma_slave_rx = SHDMA_SLAVE_SDHI1_RX, | 1016 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI1_RX, |
1017 | .tmio_flags = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_USE_GPIO_CD, | 1017 | .flags = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_USE_GPIO_CD, |
1018 | .tmio_caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | | 1018 | .capabilities = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | |
1019 | MMC_CAP_NEEDS_POLL, | 1019 | MMC_CAP_NEEDS_POLL, |
1020 | .cd_gpio = 41, | 1020 | .cd_gpio = 41, |
1021 | }; | 1021 | }; |
@@ -1054,11 +1054,11 @@ static struct platform_device sdhi1_device = { | |||
1054 | * The card detect pin of the top SD/MMC slot (CN23) is active low and is | 1054 | * The card detect pin of the top SD/MMC slot (CN23) is active low and is |
1055 | * connected to GPIO SCIFB_SCK of SH7372 (GPIO 162). | 1055 | * connected to GPIO SCIFB_SCK of SH7372 (GPIO 162). |
1056 | */ | 1056 | */ |
1057 | static struct sh_mobile_sdhi_info sdhi2_info = { | 1057 | static struct tmio_mmc_data sdhi2_info = { |
1058 | .dma_slave_tx = SHDMA_SLAVE_SDHI2_TX, | 1058 | .chan_priv_tx = (void *)SHDMA_SLAVE_SDHI2_TX, |
1059 | .dma_slave_rx = SHDMA_SLAVE_SDHI2_RX, | 1059 | .chan_priv_rx = (void *)SHDMA_SLAVE_SDHI2_RX, |
1060 | .tmio_flags = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_USE_GPIO_CD, | 1060 | .flags = TMIO_MMC_WRPROTECT_DISABLE | TMIO_MMC_USE_GPIO_CD, |
1061 | .tmio_caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | | 1061 | .capabilities = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ | |
1062 | MMC_CAP_NEEDS_POLL, | 1062 | MMC_CAP_NEEDS_POLL, |
1063 | .cd_gpio = 162, | 1063 | .cd_gpio = 162, |
1064 | }; | 1064 | }; |