[i2c] [PATCH] i2c: completion header cleanups

Jean Delvare khali at linux-fr.org
Wed Jan 3 14:37:47 CET 2007


i2c-core and i2c-isa use completions without including
<linux/completion.h>. Fix it.

i2c-powermac includes <linux/completion.h> but doesn't use any
completion. Fix it.

Signed-off-by: Jean Delvare <khali at linux-fr.org>
---
 drivers/i2c/busses/i2c-isa.c      |    1 +
 drivers/i2c/busses/i2c-powermac.c |    1 -
 drivers/i2c/i2c-core.c            |    1 +
 3 files changed, 2 insertions(+), 1 deletion(-)

--- linux-2.6.20-rc3.orig/drivers/i2c/busses/i2c-isa.c	2007-01-03 14:23:19.000000000 +0100
+++ linux-2.6.20-rc3/drivers/i2c/busses/i2c-isa.c	2007-01-03 14:25:12.000000000 +0100
@@ -39,6 +39,7 @@
 #include <linux/i2c.h>
 #include <linux/i2c-isa.h>
 #include <linux/platform_device.h>
+#include <linux/completion.h>
 
 static u32 isa_func(struct i2c_adapter *adapter);
 
--- linux-2.6.20-rc3.orig/drivers/i2c/busses/i2c-powermac.c	2007-01-03 14:23:19.000000000 +0100
+++ linux-2.6.20-rc3/drivers/i2c/busses/i2c-powermac.c	2007-01-03 14:24:44.000000000 +0100
@@ -25,7 +25,6 @@
 #include <linux/types.h>
 #include <linux/i2c.h>
 #include <linux/init.h>
-#include <linux/completion.h>
 #include <linux/device.h>
 #include <linux/platform_device.h>
 #include <asm/prom.h>
--- linux-2.6.20-rc3.orig/drivers/i2c/i2c-core.c	2007-01-03 14:23:19.000000000 +0100
+++ linux-2.6.20-rc3/drivers/i2c/i2c-core.c	2007-01-03 14:24:29.000000000 +0100
@@ -32,6 +32,7 @@
 #include <linux/seq_file.h>
 #include <linux/platform_device.h>
 #include <linux/mutex.h>
+#include <linux/completion.h>
 #include <asm/uaccess.h>
 
 


-- 
Jean Delvare



More information about the i2c mailing list