1 From 38581b29a95f542e5696f436fea874a881f75825 Mon Sep 17 00:00:00 2001
2 From: Cesar Eduardo Barros <cesarb@cesarb.net>
3 Date: Mon, 4 Aug 2008 08:34:50 +0100
4 Subject: [PATCH] pcf50606: fix gllin compat link
6 Uses bus_create_device_link to correctly create the gllin compat link.
8 Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net>
10 drivers/i2c/chips/pcf50606.c | 17 +++--------------
11 1 files changed, 3 insertions(+), 14 deletions(-)
13 diff --git a/drivers/i2c/chips/pcf50606.c b/drivers/i2c/chips/pcf50606.c
14 index 4218917..c97cad3 100644
15 --- a/drivers/i2c/chips/pcf50606.c
16 +++ b/drivers/i2c/chips/pcf50606.c
17 @@ -1784,12 +1784,6 @@ static int pcf50606_detect(struct i2c_adapter *adapter, int address, int kind)
19 #ifdef CONFIG_MACH_NEO1973_GTA01
20 if (machine_is_neo1973_gta01()) {
21 - /* FIXME: what is the device name we are symlinking to?
22 - * symlink won't get created until this is fixed.
24 - struct device * busdev = bus_find_device_by_name(
27 gta01_pm_gps_dev.dev.parent = &new_client->dev;
29 case GTA01Bv2_SYSTEM_REV:
30 @@ -1801,16 +1795,11 @@ static int pcf50606_detect(struct i2c_adapter *adapter, int address, int kind)
32 platform_device_register(>a01_pm_gps_dev);
33 /* a link for gllin compatibility */
34 - /* 2.6.25 tracking: platform_bus_type.devices that was here
35 - * has gone away in mainline
38 - err = sysfs_create_link(&busdev->kobj,
39 + err = bus_create_device_link(&platform_bus_type,
40 >a01_pm_gps_dev.dev.kobj, "gta01-pm-gps.0");
45 "sysfs_create_link (gta01-pm-gps.0): %d\n", err);