diff options
author | Cesar Eduardo Barros <cesarb@cesarb.net> | 2008-11-19 17:10:03 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:10:03 +0000 |
commit | c949adb29312a02d66df4bb0f8eae9d29d5e7e31 (patch) | |
tree | f91d396c36bacb2bddb74b88f752cf0b42bb6dda | |
parent | d24c06f073742d1458d513401e5e9b7df66801f7 (diff) |
pcf50606: fix gllin compat link
Uses bus_create_device_link to correctly create the gllin compat link.
Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net>
-rw-r--r-- | drivers/i2c/chips/pcf50606.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/i2c/chips/pcf50606.c b/drivers/i2c/chips/pcf50606.c index 93dd4b869bf..c58fd3f7a8e 100644 --- a/drivers/i2c/chips/pcf50606.c +++ b/drivers/i2c/chips/pcf50606.c @@ -1785,12 +1785,6 @@ 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: @@ -1802,16 +1796,11 @@ static int pcf50606_detect(struct i2c_adapter *adapter, int address, int kind) } platform_device_register(>a01_pm_gps_dev); /* a link for gllin compatibility */ - /* 2.6.25 tracking: platform_bus_type.devices that was here - * has gone away in mainline - */ - if (busdev) { - err = sysfs_create_link(&busdev->kobj, + err = bus_create_device_link(&platform_bus_type, >a01_pm_gps_dev.dev.kobj, "gta01-pm-gps.0"); - if (err) - printk(KERN_ERR + if (err) + printk(KERN_ERR "sysfs_create_link (gta01-pm-gps.0): %d\n", err); - } } #endif |