| From fc928a0db3812c3d823c5aa3356110797237efc0 Mon Sep 17 00:00:00 2001 |
| From: Ulf Hansson <ulf.hansson@linaro.org> |
| Date: Wed, 23 Oct 2013 14:51:31 +0200 |
| Subject: mmc: sh_mobile_sdhi: Use modern PM macros to define pm callbacks |
| |
| Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> |
| Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> |
| Signed-off-by: Chris Ball <chris@printf.net> |
| (cherry picked from commit 4e262d7f6fd43d798175cf26223c5bd3ebfd7b13) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/mmc/host/sh_mobile_sdhi.c | 8 ++++---- |
| 1 file changed, 4 insertions(+), 4 deletions(-) |
| |
| diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c |
| index 2d6ce257a273..03fe7518bba4 100644 |
| --- a/drivers/mmc/host/sh_mobile_sdhi.c |
| +++ b/drivers/mmc/host/sh_mobile_sdhi.c |
| @@ -316,10 +316,10 @@ static int sh_mobile_sdhi_remove(struct platform_device *pdev) |
| } |
| |
| static const struct dev_pm_ops tmio_mmc_dev_pm_ops = { |
| - .suspend = tmio_mmc_host_suspend, |
| - .resume = tmio_mmc_host_resume, |
| - .runtime_suspend = tmio_mmc_host_runtime_suspend, |
| - .runtime_resume = tmio_mmc_host_runtime_resume, |
| + SET_SYSTEM_SLEEP_PM_OPS(tmio_mmc_host_suspend, tmio_mmc_host_resume) |
| + SET_RUNTIME_PM_OPS(tmio_mmc_host_runtime_suspend, |
| + tmio_mmc_host_runtime_resume, |
| + NULL) |
| }; |
| |
| static struct platform_driver sh_mobile_sdhi_driver = { |
| -- |
| 2.1.2 |
| |