i2c/powermac: Register i2c devices from device-tree
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 18 Apr 2012 22:16:42 +0000 (22:16 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 30 Apr 2012 05:37:17 +0000 (15:37 +1000)
commit81e5d8646ff6bf323dddcf172aa3cef84468fa12
treeacf9a3a4709118f4bb423d5887b1581546d8ae13
parent35000870fcfbb28757ad47de77b4645072d916b8
i2c/powermac: Register i2c devices from device-tree

This causes i2c-powermac to register i2c devices exposed in the
device-tree, enabling new-style probing of devices.

Note that we prefix the IDs with "MAC," in order to prevent the
generic drivers from matching. This is done on purpose as we only
want drivers specifically tested/designed to operate on powermacs
to match.

This removes the special case we had for the AMS driver, and updates
the driver's match table instead.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powermac/low_i2c.c
drivers/i2c/busses/i2c-powermac.c
drivers/macintosh/ams/ams-i2c.c