提交 2e058a6f 编写于 作者: R Rabin Vincent 提交者: Pierre Ossman

mvsdio: fix CONFIG_PM=y build

Fix usage of obsolete parameters and functions in the driver's PM
callbacks.
Signed-off-by: NRabin Vincent <rabin@rab.in>
Acked-by: NNicolas Pitre <nico@marvell.com>
Signed-off-by: NPierre Ossman <pierre@ossman.eu>
上级 4ea580f1
...@@ -825,24 +825,23 @@ static int __exit mvsd_remove(struct platform_device *pdev) ...@@ -825,24 +825,23 @@ static int __exit mvsd_remove(struct platform_device *pdev)
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM
static int mvsd_suspend(struct platform_device *dev, pm_message_t state, static int mvsd_suspend(struct platform_device *dev, pm_message_t state)
u32 level)
{ {
struct mmc_host *mmc = platform_get_drvdata(dev); struct mmc_host *mmc = platform_get_drvdata(dev);
int ret = 0; int ret = 0;
if (mmc && level == SUSPEND_DISABLE) if (mmc)
ret = mmc_suspend_host(mmc, state); ret = mmc_suspend_host(mmc, state);
return ret; return ret;
} }
static int mvsd_resume(struct platform_device *dev, u32 level) static int mvsd_resume(struct platform_device *dev)
{ {
struct mmc_host *mmc = platform_dev_get_drvdata(dev); struct mmc_host *mmc = platform_get_drvdata(dev);
int ret = 0; int ret = 0;
if (mmc && level == RESUME_ENABLE) if (mmc)
ret = mmc_resume_host(mmc); ret = mmc_resume_host(mmc);
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册