diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-16 16:30:09 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-16 16:30:09 -0700 |
commit | 7c8af403d262acf6bcdc877cac53ae09d0e2ad61 (patch) | |
tree | 1528732192b748d3503ed3dba686d2f56f9a46db /i2c | |
parent | ae4fdf0ab440307765180d3bf027037c8a67d0ba (diff) | |
download | patches-7c8af403d262acf6bcdc877cac53ae09d0e2ad61.tar.gz |
more patches added
Diffstat (limited to 'i2c')
-rw-r--r-- | i2c/i2c-i2c-controllers-go-into-right-place-on-sysfs.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/i2c/i2c-i2c-controllers-go-into-right-place-on-sysfs.patch b/i2c/i2c-i2c-controllers-go-into-right-place-on-sysfs.patch new file mode 100644 index 0000000000000..527b67f94cf07 --- /dev/null +++ b/i2c/i2c-i2c-controllers-go-into-right-place-on-sysfs.patch @@ -0,0 +1,33 @@ +From david-b@pacbell.net Tue Jun 13 09:47:37 2006 +From: David Brownell <david-b@pacbell.net> +To: Greg KH <greg@kroah.com> +Subject: I2C: I2C controllers go into right place on sysfs +Date: Tue, 13 Jun 2006 09:47:27 -0700 +Cc: Jean Delvare <khali@linux-fr.org> +Message-Id: <200606130947.28074.david-b@pacbell.net> + +I2C creates some sysfs nodes in the wrong places: not as children of parent +controllers, but as their peers (!). This puts them into the right place +always, instead of just when the adapter is on the platform bus. + +Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> +Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> + +--- + drivers/i2c/i2c-dev.c | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +--- gregkh-2.6.orig/drivers/i2c/i2c-dev.c ++++ gregkh-2.6/drivers/i2c/i2c-dev.c +@@ -426,10 +426,7 @@ static int i2cdev_attach_adapter(struct + + /* register this i2c device with the driver core */ + i2c_dev->adap = adap; +- if (adap->dev.parent == &platform_bus) +- dev = &adap->dev; +- else +- dev = adap->dev.parent; ++ dev = &adap->dev; + i2c_dev->class_dev = class_device_create(i2c_dev_class, NULL, + MKDEV(I2C_MAJOR, i2c_dev->minor), + dev, "i2c-%d", i2c_dev->minor); |