mmc: msm_sdcc: Compile the driver for msm7x30

The controller base address is referred from platform
resource instead of using #defines. This fixes the
compilation error when driver is compiled for msm7x30.

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>

authored by Sahitya Tummala and committed by Daniel Walker edd4dd0e 08ecfde4

+2 -13
+1 -1
drivers/mmc/host/Kconfig
··· 249 249 250 250 config MMC_MSM7X00A 251 251 tristate "Qualcomm MSM 7X00A SDCC Controller Support" 252 - depends on MMC && ARCH_MSM && !ARCH_MSM7X30 252 + depends on MMC && ARCH_MSM 253 253 help 254 254 This provides support for the SD/MMC cell found in the 255 255 MSM 7X00A controllers from Qualcomm.
+1 -12
drivers/mmc/host/msm_sdcc.c
··· 160 160 161 161 uint32_t msmsdcc_fifo_addr(struct msmsdcc_host *host) 162 162 { 163 - switch (host->pdev_id) { 164 - case 1: 165 - return MSM_SDC1_PHYS + MMCIFIFO; 166 - case 2: 167 - return MSM_SDC2_PHYS + MMCIFIFO; 168 - case 3: 169 - return MSM_SDC3_PHYS + MMCIFIFO; 170 - case 4: 171 - return MSM_SDC4_PHYS + MMCIFIFO; 172 - } 173 - BUG(); 174 - return 0; 163 + return host->memres->start + MMCIFIFO; 175 164 } 176 165 177 166 static inline void