gta01-pm-* and friends

Werner Almesberger werner at openmoko.org
Sun Mar 2 09:04:21 CET 2008


Daniel Willmann wrote:
> it seems newer kernels don't have this compatibility symlink and thus
> gllin breaks.
> Could we get these symlinks to make gllin happy?

Aah yes, forgot about that one. Does the patch below solve the problem ?
(Don't have a GTA01 at hand to try myself.)

- Werner
-------------- next part --------------
Index: linux-2.6.24/drivers/i2c/chips/pcf50606.c
===================================================================
--- linux-2.6.24.orig/drivers/i2c/chips/pcf50606.c
+++ linux-2.6.24/drivers/i2c/chips/pcf50606.c
@@ -1775,6 +1775,11 @@ static int pcf50606_detect(struct i2c_ad
 			break;
 		}
 		platform_device_register(&gta01_pm_gps_dev);
+		err = sysfs_create_link(&platform_bus_type.devices.kobj,
+		    &gta01_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
 


More information about the openmoko-kernel mailing list