gta01-pm-* and friends

Tim Niemeyer tim.niemeyer at mastersword.de
Sun Mar 2 13:29:08 CET 2008


Hallo Werner,

* Werner Almesberger <werner at openmoko.org> [02-03-08 16:04]:
> 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.)
For me the patch works!
Huge Thanks!

> 
> - Werner

> 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
>  



Tim Niemeyer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20080302/dfa8c2e8/attachment.pgp 


More information about the openmoko-kernel mailing list