mmc: pxamci compilation fix
diff mbox series

Message ID 20061204102852.GC5046@localhost.localdomain
State New, archived
Headers show
Series
  • mmc: pxamci compilation fix
Related show

Commit Message

Sascha Hauer Dec. 4, 2006, 10:28 a.m. UTC
Hi Pierre and all,

since commit fcaf71fd51f9cfc504455d3e19ec242e4b2073ed
struct mmc_host does not have a dev field. Retrieve the device with
mmc_dev() instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Comments

Pierre Ossman Dec. 5, 2006, 6:40 a.m. UTC | #1
Sascha Hauer wrote:
> Hi Pierre and all,
> 
> since commit fcaf71fd51f9cfc504455d3e19ec242e4b2073ed
> struct mmc_host does not have a dev field. Retrieve the device with
> mmc_dev() instead.
> 
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> 

Bad Greg ;)

Applied, thanks.

Rgds

Patch
diff mbox series

Index: drivers/mmc/pxamci.c
===================================================================
--- a/drivers/mmc/pxamci.c.orig
+++ b/drivers/mmc/pxamci.c
@@ -355,7 +355,7 @@  static int pxamci_get_ro(struct mmc_host
 	struct pxamci_host *host = mmc_priv(mmc);
 
 	if (host->pdata && host->pdata->get_ro)
-		return host->pdata->get_ro(mmc->dev);
+		return host->pdata->get_ro(mmc_dev(mmc));
 	/* Host doesn't support read only detection so assume writeable */
 	return 0;
 }
@@ -383,7 +383,7 @@  static void pxamci_set_ios(struct mmc_ho
 		host->power_mode = ios->power_mode;
 
 		if (host->pdata && host->pdata->setpower)
-			host->pdata->setpower(mmc->dev, ios->vdd);
+			host->pdata->setpower(mmc_dev(mmc), ios->vdd);
 
 		if (ios->power_mode == MMC_POWER_ON)
 			host->cmdat |= CMDAT_INIT;