Skip to content

Commit 1709775

Browse files
author
Linus Torvalds
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc: mmc: fix au1xmmc build error mmc: pxamci compilation fix
2 parents 7bf6538 + bf8c80a commit 1709775

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/mmc/au1xmmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ static void au1xmmc_init_dma(struct au1xmmc_host *host)
875875
host->rx_chan = rxchan;
876876
}
877877

878-
struct const mmc_host_ops au1xmmc_ops = {
878+
static const struct mmc_host_ops au1xmmc_ops = {
879879
.request = au1xmmc_request,
880880
.set_ios = au1xmmc_set_ios,
881881
};

drivers/mmc/pxamci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static int pxamci_get_ro(struct mmc_host *mmc)
355355
struct pxamci_host *host = mmc_priv(mmc);
356356

357357
if (host->pdata && host->pdata->get_ro)
358-
return host->pdata->get_ro(mmc->dev);
358+
return host->pdata->get_ro(mmc_dev(mmc));
359359
/* Host doesn't support read only detection so assume writeable */
360360
return 0;
361361
}
@@ -383,7 +383,7 @@ static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
383383
host->power_mode = ios->power_mode;
384384

385385
if (host->pdata && host->pdata->setpower)
386-
host->pdata->setpower(mmc->dev, ios->vdd);
386+
host->pdata->setpower(mmc_dev(mmc), ios->vdd);
387387

388388
if (ios->power_mode == MMC_POWER_ON)
389389
host->cmdat |= CMDAT_INIT;

0 commit comments

Comments
 (0)