Re: [PATCH 3/6] of/of_i2c: add support for dedicated OF I2C devices

From: David Miller
Date: Tue Oct 28 2008 - 14:42:17 EST


From: Anton Vorontsov <avorontsov@xxxxxxxxxxxxx>
Date: Tue, 28 Oct 2008 20:46:15 +0300

> of_i2c will create the OF platform device if it knows that the
> device won't work without platform data. The OF platform driver
> will fill the platform data and will register real I2C device.
>
> Signed-off-by: Anton Vorontsov <avorontsov@xxxxxxxxxxxxx>

Wrt. the comment in the ppc protected code, sparc doesn't need stuff
like this, we already create an of_device for every node in the device
tree.

Just use "of_find_device_by_node()" on sparc, which will work on any
device_node object.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/