Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4644bec authored by Axel Lin's avatar Axel Lin Committed by Wolfram Sang
Browse files

i2c: exynos5: Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS instead of open-coded



Use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS to simplify the code.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Reviewed-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 2c89e5d8
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -847,14 +847,8 @@ static int exynos5_i2c_resume_noirq(struct device *dev)
#endif

static const struct dev_pm_ops exynos5_i2c_dev_pm_ops = {
#ifdef CONFIG_PM_SLEEP
	.suspend_noirq = exynos5_i2c_suspend_noirq,
	.resume_noirq = exynos5_i2c_resume_noirq,
	.freeze_noirq = exynos5_i2c_suspend_noirq,
	.thaw_noirq = exynos5_i2c_resume_noirq,
	.poweroff_noirq = exynos5_i2c_suspend_noirq,
	.restore_noirq = exynos5_i2c_resume_noirq,
#endif
	SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(exynos5_i2c_suspend_noirq,
				      exynos5_i2c_resume_noirq)
};

static struct platform_driver exynos5_i2c_driver = {