]> err.no Git - linux-2.6/commit
[POWERPC] Add of_register_i2c_devices()
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 20 Jul 2007 20:26:15 +0000 (06:26 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 26 Jul 2007 06:12:17 +0000 (16:12 +1000)
commitd13ae8620dfdedfa7e9ab6d1eec294adc0516065
tree7cdf15b89eaee9cb7f40b47985f309755a202974
parent56d6d1a73d9e5ddd9eb1a7baeeda30803ba44879
[POWERPC] Add of_register_i2c_devices()

Scan the device tree for i2c devices, check their "compatible" property
against a hard-coded table, and, if found, register with i2c boardinfo.
This provides the infrastructure needed to find i2c devices in the
device tree and register them with the i2c subsystem.

This and the following commit let the linkstation work with the new i2c
API and thus fix a regression.

Signed-off-by: G. Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/fsl_soc.c