Messages in this thread | | | Date | Tue, 28 Oct 2008 11:41:35 -0700 (PDT) | Subject | Re: [PATCH 3/6] of/of_i2c: add support for dedicated OF I2C devices | From | David Miller <> |
| |
From: Anton Vorontsov <avorontsov@ru.mvista.com> 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@ru.mvista.com>
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.
| |