diff options
author | Mirko Vogt <mirko@openwrt.org> | 2008-12-13 01:54:56 +0000 |
---|---|---|
committer | Mirko Vogt <mirko@openwrt.org> | 2008-12-13 01:54:56 +0000 |
commit | 4eec5435530060db9fa75ee3d363252eb73695e9 (patch) | |
tree | 01f2bf78edb2e3bb1466df9bca72e068632d0e74 /target/linux/s3c24xx/patches-2.6.26/1123-tracking-2.6.25-struct-bus-type-loses-devices-member.patch | |
parent | b0f5b5307126b277c44fa71bbd8f105f6702a8c0 (diff) | |
download | master-187ad058-4eec5435530060db9fa75ee3d363252eb73695e9.tar.gz master-187ad058-4eec5435530060db9fa75ee3d363252eb73695e9.tar.bz2 master-187ad058-4eec5435530060db9fa75ee3d363252eb73695e9.zip |
change prefix for kernelpatchbase 2.6.26
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13619 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.26/1123-tracking-2.6.25-struct-bus-type-loses-devices-member.patch')
-rwxr-xr-x | target/linux/s3c24xx/patches-2.6.26/1123-tracking-2.6.25-struct-bus-type-loses-devices-member.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.26/1123-tracking-2.6.25-struct-bus-type-loses-devices-member.patch b/target/linux/s3c24xx/patches-2.6.26/1123-tracking-2.6.25-struct-bus-type-loses-devices-member.patch new file mode 100755 index 0000000000..4510064632 --- /dev/null +++ b/target/linux/s3c24xx/patches-2.6.26/1123-tracking-2.6.25-struct-bus-type-loses-devices-member.patch @@ -0,0 +1,56 @@ +From e7e0525a9ddbb82b24216af5182353a345dca59f Mon Sep 17 00:00:00 2001 +From: Andy Green <andy@openmoko.com> +Date: Fri, 25 Jul 2008 23:06:06 +0100 +Subject: [PATCH] tracking-2.6.25-struct-bus-type-loses-devices-member.patch + +I don't know what device the symlink should be linked +against on GTA01, somebody that does know needs to edit +it in where it says "FIXME"... I think the supplied method +can work OK otherwise. + +Signed-off-by: Andy Green <andy@openmoko.com> +--- + drivers/i2c/chips/pcf50606.c | 19 +++++++++++++++---- + 1 files changed, 15 insertions(+), 4 deletions(-) + +diff --git a/drivers/i2c/chips/pcf50606.c b/drivers/i2c/chips/pcf50606.c +index 2466bf8..50f944f 100644 +--- a/drivers/i2c/chips/pcf50606.c ++++ b/drivers/i2c/chips/pcf50606.c +@@ -1781,6 +1781,12 @@ static int pcf50606_detect(struct i2c_adapter *adapter, int address, int kind) + + #ifdef CONFIG_MACH_NEO1973_GTA01 + if (machine_is_neo1973_gta01()) { ++ /* FIXME: what is the device name we are symlinking to? ++ * symlink won't get created until this is fixed. ++ */ ++ struct device * busdev = bus_find_device_by_name( ++ &platform_bus_type, ++ NULL, "FIXME"); + gta01_pm_gps_dev.dev.parent = &new_client->dev; + switch (system_rev) { + case GTA01Bv2_SYSTEM_REV: +@@ -1792,11 +1798,16 @@ static int pcf50606_detect(struct i2c_adapter *adapter, int address, int kind) + } + platform_device_register(>a01_pm_gps_dev); + /* a link for gllin compatibility */ +- err = sysfs_create_link(&platform_bus_type.devices.kobj, +- >a01_pm_gps_dev.dev.kobj, "gta01-pm-gps.0"); +- if (err) +- printk(KERN_ERR ++ /* 2.6.25 tracking: platform_bus_type.devices that was here ++ * has gone away in mainline ++ */ ++ if (busdev) { ++ err = sysfs_create_link(&busdev->kobj, ++ >a01_pm_gps_dev.dev.kobj, "gta01-pm-gps.0"); ++ if (err) ++ printk(KERN_ERR + "sysfs_create_link (gta01-pm-gps.0): %d\n", err); ++ } + } + #endif + +-- +1.5.6.3 + |