提交 5d5c0350 编写于 作者: L Lars-Peter Clausen 提交者: Chris Ball

mmc: jz4740: Use SIMPLE_DEV_PM_OPS

It's a bit shorter than open-conding it. While we are at it also make
jz4740_mmc_pm_ops static.
Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: NChris Ball <cjb@laptop.org>
上级 8a489aa1
...@@ -967,7 +967,7 @@ static int jz4740_mmc_remove(struct platform_device *pdev) ...@@ -967,7 +967,7 @@ static int jz4740_mmc_remove(struct platform_device *pdev)
return 0; return 0;
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM_SLEEP
static int jz4740_mmc_suspend(struct device *dev) static int jz4740_mmc_suspend(struct device *dev)
{ {
...@@ -991,13 +991,8 @@ static int jz4740_mmc_resume(struct device *dev) ...@@ -991,13 +991,8 @@ static int jz4740_mmc_resume(struct device *dev)
return 0; return 0;
} }
const struct dev_pm_ops jz4740_mmc_pm_ops = { static SIMPLE_DEV_PM_OPS(jz4740_mmc_pm_ops, jz4740_mmc_suspend,
.suspend = jz4740_mmc_suspend, jz4740_mmc_resume);
.resume = jz4740_mmc_resume,
.poweroff = jz4740_mmc_suspend,
.restore = jz4740_mmc_resume,
};
#define JZ4740_MMC_PM_OPS (&jz4740_mmc_pm_ops) #define JZ4740_MMC_PM_OPS (&jz4740_mmc_pm_ops)
#else #else
#define JZ4740_MMC_PM_OPS NULL #define JZ4740_MMC_PM_OPS NULL
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册