[RFC] Add of_find_matching_node() helper function

Stephen Rothwell sfr at canb.auug.org.au
Tue Jan 8 11:48:49 EST 2008


Hi Grant,

On Mon, 07 Jan 2008 11:15:56 -0700 Grant Likely <grant.likely at secretlab.ca> wrote:
>
> +++ b/include/linux/of.h
> @@ -60,5 +66,7 @@ extern const void *of_get_property(const struct device_node *node,
>  				int *lenp);
>  extern int of_n_addr_cells(struct device_node *np);
>  extern int of_n_size_cells(struct device_node *np);
> +extern const struct of_device_id *of_match_node(
> +	const struct of_device_id *matches, const struct device_node *node);
>  
>  #endif /* _LINUX_OF_H */
> diff --git a/include/linux/of_device.h b/include/linux/of_device.h
> index 212bffb..6dc1195 100644
> --- a/include/linux/of_device.h
> +++ b/include/linux/of_device.h
> @@ -10,8 +10,6 @@
>  
>  #define	to_of_device(d) container_of(d, struct of_device, dev)
>  
> -extern const struct of_device_id *of_match_node(
> -	const struct of_device_id *matches, const struct device_node *node);
>  extern const struct of_device_id *of_match_device(
>  	const struct of_device_id *matches, const struct of_device *dev);

So you should really change all the callers of of_match_node to include linux/of.h.
-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080108/cf8ec8b0/attachment.pgp>


More information about the Linuxppc-dev mailing list