Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: s3c2410: 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: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

Axel Lin and committed by
Wolfram Sang
f6903783 d4644bec

+2 -8
+2 -8
drivers/i2c/busses/i2c-s3c2410.c
··· 1316 1316 1317 1317 #ifdef CONFIG_PM 1318 1318 static const struct dev_pm_ops s3c24xx_i2c_dev_pm_ops = { 1319 - #ifdef CONFIG_PM_SLEEP 1320 - .suspend_noirq = s3c24xx_i2c_suspend_noirq, 1321 - .resume_noirq = s3c24xx_i2c_resume_noirq, 1322 - .freeze_noirq = s3c24xx_i2c_suspend_noirq, 1323 - .thaw_noirq = s3c24xx_i2c_resume_noirq, 1324 - .poweroff_noirq = s3c24xx_i2c_suspend_noirq, 1325 - .restore_noirq = s3c24xx_i2c_resume_noirq, 1326 - #endif 1319 + SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(s3c24xx_i2c_suspend_noirq, 1320 + s3c24xx_i2c_resume_noirq) 1327 1321 }; 1328 1322 1329 1323 #define S3C24XX_DEV_PM_OPS (&s3c24xx_i2c_dev_pm_ops)