Skip to content

Commit

Permalink
mmc: msm_sdcc: Compile the driver for msm7x30
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sahitya Tummala authored and Daniel Walker committed Aug 9, 2010
1 parent 08ecfde commit edd4dd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion drivers/mmc/host/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ config MMC_IMX

config MMC_MSM7X00A
tristate "Qualcomm MSM 7X00A SDCC Controller Support"
depends on MMC && ARCH_MSM && !ARCH_MSM7X30
depends on MMC && ARCH_MSM
help
This provides support for the SD/MMC cell found in the
MSM 7X00A controllers from Qualcomm.
Expand Down
13 changes: 1 addition & 12 deletions drivers/mmc/host/msm_sdcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,7 @@ msmsdcc_stop_data(struct msmsdcc_host *host)

uint32_t msmsdcc_fifo_addr(struct msmsdcc_host *host)
{
switch (host->pdev_id) {
case 1:
return MSM_SDC1_PHYS + MMCIFIFO;
case 2:
return MSM_SDC2_PHYS + MMCIFIFO;
case 3:
return MSM_SDC3_PHYS + MMCIFIFO;
case 4:
return MSM_SDC4_PHYS + MMCIFIFO;
}
BUG();
return 0;
return host->memres->start + MMCIFIFO;
}

static inline void
Expand Down

0 comments on commit edd4dd0

Please sign in to comment.