Changes to of_device ?
lists at gate-nine.de
Fri Jun 17 22:57:53 EST 2011
On 06/17/2011 01:22 PM, Guillaume Dargaud wrote:
>> Not answering your primary question here, but in order to print the most
>> recent tag (along with a uniqe suffix, see man page) that is reachable
>> from your current branch, you can use "git describe". It will print out
>> the kernel version on your latest Xilinx tree.
> $ git describe
> $ cat ./include/linux/version.h
> #define LINUX_VERSION_CODE 132645
> #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
> $ printf "%x\n" 132645
> Something doesn't quite match here...
It is hexadecimal. 0x25 = 37.
> But my original question about how do you declare a probe function in
> the latest kernels still stand...
The struct device_node was moved to struct device in order to make the
CONFIG_OF more generic. See
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
Hope this helps,
More information about the Linuxppc-dev