[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <000b01cf33b0$8c7f3000$a57d9000$%han@samsung.com>
Date: Thu, 27 Feb 2014 20:39:18 +0900
From: Jingoo Han <jg1.han@...sung.com>
To: 'Lee Jones' <lee.jones@...aro.org>
Cc: linux-kernel@...r.kernel.org,
'Samuel Ortiz' <sameo@...ux.intel.com>,
'Jingoo Han' <jg1.han@...sung.com>
Subject: [PATCH] mfd: ucb1x00-core: Use SIMPLE_DEV_PM_OPS macro
Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.
Signed-off-by: Jingoo Han <jg1.han@...sung.com>
---
drivers/mfd/ucb1x00-core.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mfd/ucb1x00-core.c b/drivers/mfd/ucb1x00-core.c
index 0313f83..153d595 100644
--- a/drivers/mfd/ucb1x00-core.c
+++ b/drivers/mfd/ucb1x00-core.c
@@ -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 = {
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists