On 07/08/2014 02:51 PM, Jingoo Han wrote:
> Use SIMPLE_DEV_PM_OPS macro and remove DEV_PM_OPS macro, in order
> to make the code simpler.
> 
> Signed-off-by: Jingoo Han <jg1....@samsung.com>

Acked-by: Roger Quadros <rog...@ti.com>

> ---
>  drivers/usb/phy/phy-am335x.c |   12 +++---------
>  1 file changed, 3 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/usb/phy/phy-am335x.c b/drivers/usb/phy/phy-am335x.c
> index 585e50c..b70e055 100644
> --- a/drivers/usb/phy/phy-am335x.c
> +++ b/drivers/usb/phy/phy-am335x.c
> @@ -122,16 +122,10 @@ static int am335x_phy_resume(struct device *dev)
>  
>       return 0;
>  }
> -
> -static const struct dev_pm_ops am335x_pm_ops = {
> -     SET_SYSTEM_SLEEP_PM_OPS(am335x_phy_suspend, am335x_phy_resume)
> -};
> -
> -#define DEV_PM_OPS     (&am335x_pm_ops)
> -#else
> -#define DEV_PM_OPS     NULL
>  #endif
>  
> +static SIMPLE_DEV_PM_OPS(am335x_pm_ops, am335x_phy_suspend, 
> am335x_phy_resume);
> +
>  static const struct of_device_id am335x_phy_ids[] = {
>       { .compatible = "ti,am335x-usb-phy" },
>       { }
> @@ -144,7 +138,7 @@ static struct platform_driver am335x_phy_driver = {
>       .driver         = {
>               .name   = "am335x-phy-driver",
>               .owner  = THIS_MODULE,
> -             .pm = DEV_PM_OPS,
> +             .pm = &am335x_pm_ops,
>               .of_match_table = am335x_phy_ids,
>       },
>  };
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to