mfd: ucb1x00-core: Use SIMPLE_DEV_PM_OPS macro
authorJingoo Han <jg1.han@samsung.com>
Thu, 27 Feb 2014 11:39:18 +0000 (20:39 +0900)
committerLee Jones <lee.jones@linaro.org>
Wed, 19 Mar 2014 08:58:33 +0000 (08:58 +0000)
Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ucb1x00-core.c

index 0313f839e8fadc32228b9c892edb31a449b53ace..153d595afaacb50306bd017a1893c8f27b1c0ca3 100644 (file)
@@ -742,9 +742,7 @@ static int ucb1x00_resume(struct device *dev)
 }
 #endif
 
-static const struct dev_pm_ops ucb1x00_pm_ops = {
-       SET_SYSTEM_SLEEP_PM_OPS(ucb1x00_suspend, ucb1x00_resume)
-};
+static SIMPLE_DEV_PM_OPS(ucb1x00_pm_ops, ucb1x00_suspend, ucb1x00_resume);
 
 static struct mcp_driver ucb1x00_driver = {
        .drv            = {