From 482e30d53451f7f297591b2e7b140250aa078715 Mon Sep 17 00:00:00 2001 From: Youngmin Nam Date: Mon, 24 Aug 2015 19:44:21 +0900 Subject: [PATCH] i2c: s3c2410: Fix compile error Change-Id: I43824c6f1e72aea52da3b6cb8d06e684107a516e Signed-off-by: Youngmin Nam --- drivers/i2c/busses/i2c-s3c2410.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index e31b73e63398..5fc56a2048bf 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -40,11 +40,7 @@ #include #ifdef CONFIG_CPU_IDLE -#include -#endif - -#ifdef CONFIG_CPU_IDLE -#include +#include static LIST_HEAD(drvdata_list); #endif @@ -1326,8 +1322,8 @@ static int s3c24xx_i2c_suspend_noirq(struct device *dev) static int s3c24xx_i2c_resume_noirq(struct device *dev) { - struct s3c24xx_i2c *i2c = dev_get_drvdata(dev); - int ret; + struct platform_device *pdev = to_platform_device(dev); + struct s3c24xx_i2c *i2c = platform_get_drvdata(pdev); i2c->suspended = 0; i2c->need_hw_init = S3C2410_NEED_REG_INIT; -- 2.20.1