INIT_COMPLETION was replaced by reinit_completion vide commit 2c9627cca471
("tree-wide: use reinit_completion instead of INIT_COMPLETION"). Use it to
avoid the following build error:
drivers/i2c/busses/i2c-exynos5.c:538:9: error:
undefined identifier 'INIT_COMPLETION'

Signed-off-by: Sachin Kamat <[email protected]>
Cc: Naveen Krishna Chatradhi <[email protected]>
---
 drivers/i2c/busses/i2c-exynos5.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c
index aca3991b7636..d4193000643d 100644
--- a/drivers/i2c/busses/i2c-exynos5.c
+++ b/drivers/i2c/busses/i2c-exynos5.c
@@ -535,7 +535,7 @@ static int exynos5_i2c_xfer_msg(struct exynos5_i2c *i2c,
        i2c->msg_ptr = 0;
        i2c->trans_done = 0;
 
-       INIT_COMPLETION(i2c->msg_complete);
+       reinit_completion(&i2c->msg_complete);
 
        exynos5_i2c_message_start(i2c, stop);
 
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to