From: Jean Delvare <khali@linux-fr.org>
Date: Sat, 17 Sep 2005 02:28:08 +0000 (-0700)
Subject: [PATCH] i2c: kill an unused i2c_adapter struct member
X-Git-Tag: v2.6.14-rc2~5^2~22
X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8ac2120d90273c590cf7662f03d103519101685b;p=linux-2.6-omap-h63xx.git

[PATCH] i2c: kill an unused i2c_adapter struct member

Kill an unused member of the i2c_adapter structure.  This additionally
fixes a potential bug, because <linux/i2c.h> doesn't include
<linux/config.h>, so different files including <linux/i2c.h> could see a
different definition of the i2c_adapter structure, depending on them
including <linux/config.h> (or other header files themselves including
<linux/config.h>) before <linux/i2c.h>, or not.

Credits go to Jörn Engel for pointing me to the problem.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
---

diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index be35332b67e..3d49a305bf8 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -230,11 +230,6 @@ struct i2c_adapter {
 	struct device dev;		/* the adapter device */
 	struct class_device class_dev;	/* the class device */
 
-#ifdef CONFIG_PROC_FS 
-	/* No need to set this when you initialize the adapter          */
-	int inode;
-#endif /* def CONFIG_PROC_FS */
-
 	int nr;
 	struct list_head clients;
 	struct list_head list;