driver model: PM type conversions in drivers/mmc
PATCH 1/1 driver model: PM type conversions in drivers/mmc
This fixes PM driver model type checking for drivers/mmc. Acked by Pavel Machek.
Signed-off-by Daniel Drake <[email protected]>
drivers/mmc/mmc.c +1 -1
@@ -884,7 +884,7 @@ EXPORT_SYMBOL(mmc_free_host);* @host: mmc host * @state: suspend mode (PM_SUSPEND_xxx) */ -int mmc_suspend_host (struct mmc_host *host,u32 state) +int mmc_suspend_host (struct mmc_host *host,pm_message_t state) {mmc_claim_host (host);mmc_deselect_cards (host);
drivers/mmc/mmci.c +1 -1
@@ -603,7 +603,7 @@ static int mmci_remove(struct amba_devic }#ifdef CONFIG_PM -static int mmci_suspend (struct amba_device *dev,u32 state) +static int mmci_suspend (struct amba_device *dev,pm_message_t state) {struct mmc_host *mmc =amba_get_drvdata (dev);int ret =0 ;
drivers/mmc/pxamci.c +1 -1
@@ -558,7 +558,7 @@ static int pxamci_remove(struct device * }#ifdef CONFIG_PM -static int pxamci_suspend (struct device *dev,u32 state,u32 level) +static int pxamci_suspend (struct device *dev,pm_message_t state,u32 level) {struct mmc_host *mmc =dev_get_drvdata (dev);int ret =0 ;
drivers/mmc/wbsd.c +1 -1
@@ -1563,7 +1563,7 @@ static int wbsd_remove(struct device* de*/ #ifdef CONFIG_PM -static int wbsd_suspend (struct device *dev,u32 state,u32 level) +static int wbsd_suspend (struct device *dev,pm_message_t state,u32 level) {DBGF ("Not yet supported\n" );
include/linux/mmc/host.h +1 -1
@@ -98,7 +98,7 @@ extern void mmc_free_host(struct mmc_hos#define mmc_priv (x) ((void *)((x) + 1))#define mmc_dev (x) ((x)->dev) -extern int mmc_suspend_host (struct mmc_host *,u32 ); +extern int mmc_suspend_host (struct mmc_host *,pm_message_t );extern int mmc_resume_host (struct mmc_host *);extern void mmc_detect_change (struct mmc_host *);