Changes to of_device ?

Philipp Ittershagen lists at gate-nine.de
Fri Jun 17 23:06:52 EST 2011


On 06/17/2011 02:57 PM, Philipp Ittershagen wrote:
> The struct device_node was moved to struct device in order to make the
> CONFIG_OF more generic. See
> 
> commit d706c1b050274b3bf97d7cb0542c0d070c9ccb8b
> Author: Grant Likely <grant.likely at secretlab.ca>
> Date:   Tue Apr 13 16:12:28 2010 -0700
> 
>     driver-core: Add device node pointer to struct device
> 

I'm sorry, I should have mentioned that struct of_device was replaced by
struct platform_device. So in order to get your code compiled, you have
to change the probe function to

static int xad_driver_probe(struct platform_device* dev, const struct
of_device_id *match) {

The change was introduced by

commit 2dc11581376829303b98eadb2de253bee065a56a
Author: Grant Likely <grant.likely at secretlab.ca>
Date:   Fri Aug 6 09:25:50 2010 -0600

    of/device: Replace struct of_device with struct platform_device


Greetings,

  Philipp


More information about the Linuxppc-dev mailing list