From: Jingoo Han Date: Thu, 27 Feb 2014 11:39:18 +0000 (+0900) Subject: mfd: ucb1x00-core: Use SIMPLE_DEV_PM_OPS macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=507c133b7dad837e6d0badbe9dc85310ab27a48a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/ucb1x00-core.c b/drivers/mfd/ucb1x00-core.c index 0313f839e8fa..153d595afaac 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 = {