Re: [PATCH 1/3] mmc: sh_mobile_sdhi: Use modern PM macros to define pm callbacks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 5 Nov 2013, Ulf Hansson wrote:

> Signed-off-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx>

Acked-by: Guennadi Liakhovetski <g.liakhovetski@xxxxxx>

Thanks
Guennadi

> ---
>  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 87ed3fb..2227a9f 100644
> --- a/drivers/mmc/host/sh_mobile_sdhi.c
> +++ b/drivers/mmc/host/sh_mobile_sdhi.c
> @@ -297,10 +297,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 = {
> -- 
> 1.7.9.5
> 

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux