Changes to of_device ?

Guillaume Dargaud dargaud at lpsc.in2p3.fr
Fri Jun 17 19:19:48 EST 2011


A couple linux versions ago, I had the following working code in my driver:

static int xad_driver_probe(struct of_device* dev, const struct of_device_id *match) {
	struct device_node *dn = dev->dev.of_node;

But now it won't compile and I can't figure out how to get the device_node structure from the of_device one ?
dev->dev is a struct device and there's no device_node info in it...
What has changed ?

[I'm on the latest Xilinx tree, FWIW, so that's 2.6.25 still ?]
-- 
Guillaume Dargaud
http://www.gdargaud.net/


More information about the Linuxppc-dev mailing list