diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-04-18 22:16:42 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-04-30 15:37:17 +1000 |
commit | 81e5d8646ff6bf323dddcf172aa3cef84468fa12 (patch) | |
tree | acf9a3a4709118f4bb423d5887b1581546d8ae13 /arch/powerpc/platforms | |
parent | 35000870fcfbb28757ad47de77b4645072d916b8 (diff) | |
download | op-kernel-dev-81e5d8646ff6bf323dddcf172aa3cef84468fa12.zip op-kernel-dev-81e5d8646ff6bf323dddcf172aa3cef84468fa12.tar.gz |
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>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/powermac/low_i2c.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powermac/low_i2c.c b/arch/powerpc/platforms/powermac/low_i2c.c index 03685a3..fc536f2 100644 --- a/arch/powerpc/platforms/powermac/low_i2c.c +++ b/arch/powerpc/platforms/powermac/low_i2c.c @@ -1503,6 +1503,7 @@ static int __init pmac_i2c_create_platform_devices(void) if (bus->platform_dev == NULL) return -ENOMEM; bus->platform_dev->dev.platform_data = bus; + bus->platform_dev->dev.of_node = bus->busnode; platform_device_add(bus->platform_dev); } |