From: Lars-Peter Clausen Date: Fri, 15 Feb 2013 16:57:12 +0000 (+0100) Subject: hwmon: (adt7410) Use the SIMPLE_DEV_PM_OPS helper macro X-Git-Tag: next-20130220~80^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a8d18659f035a90b6a48393830f82d6f78dcccc6;p=karo-tx-linux.git hwmon: (adt7410) Use the SIMPLE_DEV_PM_OPS helper macro Use the SIMPLE_DEV_PM_OPS macro to declare the driver's pm_ops. Signed-off-by: Lars-Peter Clausen Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/adt7410.c b/drivers/hwmon/adt7410.c index ae8081525c63..4ae16e05ca28 100644 --- a/drivers/hwmon/adt7410.c +++ b/drivers/hwmon/adt7410.c @@ -437,10 +437,8 @@ static int adt7410_resume(struct device *dev) return ret; } -static const struct dev_pm_ops adt7410_dev_pm_ops = { - .suspend = adt7410_suspend, - .resume = adt7410_resume, -}; +static SIMPLE_DEV_PM_OPS(adt7410_dev_pm_ops, adt7410_suspend, adt7410_resume); + #define ADT7410_DEV_PM_OPS (&adt7410_dev_pm_ops) #else #define ADT7410_DEV_PM_OPS NULL