diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2011-05-05 11:56:27 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-05-23 23:20:08 -0400 |
commit | 5bcd75177bed1e36186ee681a31a7251b32d956b (patch) | |
tree | 7e31d0fd319b7f52ea262871466d00fcd4c9dba8 /arch/arm/mach-shmobile | |
parent | c9fcf007f1c3380b0d2161017da46510c18d662b (diff) |
ARM: mach-shmobile: MMCIF on mackerel can also be a module
Remember to also check for the CONFIG_MMC_SH_MMCIF_MODULE option
for the case of a modular MMCIF driver.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index 7da2ca24229d..4e70ac40f9c3 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -705,7 +705,7 @@ static struct platform_device sdhi0_device = { | |||
705 | }, | 705 | }, |
706 | }; | 706 | }; |
707 | 707 | ||
708 | #if !defined(CONFIG_MMC_SH_MMCIF) | 708 | #if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE) |
709 | /* SDHI1 */ | 709 | /* SDHI1 */ |
710 | static struct sh_mobile_sdhi_info sdhi1_info = { | 710 | static struct sh_mobile_sdhi_info sdhi1_info = { |
711 | .dma_slave_tx = SHDMA_SLAVE_SDHI1_TX, | 711 | .dma_slave_tx = SHDMA_SLAVE_SDHI1_TX, |
@@ -940,7 +940,7 @@ static struct platform_device *mackerel_devices[] __initdata = { | |||
940 | &fsi_ak4643_device, | 940 | &fsi_ak4643_device, |
941 | &fsi_hdmi_device, | 941 | &fsi_hdmi_device, |
942 | &sdhi0_device, | 942 | &sdhi0_device, |
943 | #if !defined(CONFIG_MMC_SH_MMCIF) | 943 | #if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE) |
944 | &sdhi1_device, | 944 | &sdhi1_device, |
945 | #endif | 945 | #endif |
946 | &sdhi2_device, | 946 | &sdhi2_device, |
@@ -1140,7 +1140,7 @@ static void __init mackerel_init(void) | |||
1140 | gpio_request(GPIO_FN_SDHID0_1, NULL); | 1140 | gpio_request(GPIO_FN_SDHID0_1, NULL); |
1141 | gpio_request(GPIO_FN_SDHID0_0, NULL); | 1141 | gpio_request(GPIO_FN_SDHID0_0, NULL); |
1142 | 1142 | ||
1143 | #if !defined(CONFIG_MMC_SH_MMCIF) | 1143 | #if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE) |
1144 | /* enable SDHI1 */ | 1144 | /* enable SDHI1 */ |
1145 | gpio_request(GPIO_FN_SDHICMD1, NULL); | 1145 | gpio_request(GPIO_FN_SDHICMD1, NULL); |
1146 | gpio_request(GPIO_FN_SDHICLK1, NULL); | 1146 | gpio_request(GPIO_FN_SDHICLK1, NULL); |