]> git.karo-electronics.de Git - mv-sheeva.git/commit
of/device: Add OF style matching helper function
authorGrant Likely <grant.likely@secretlab.ca>
Tue, 8 Jun 2010 13:48:17 +0000 (07:48 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 5 Jul 2010 22:14:51 +0000 (16:14 -0600)
commit8cec0e7b4c7c0b76f2b5285f250211ad81c3eafd
tree84d3988600e37906d8e9972ad8ae31a0ea4684cf
parent2e13cba8dc35774bf1d7169733e876c5b7adee54
of/device: Add OF style matching helper function

Add of_driver_match_device() helper function.  This function can be used
by bus types to determine if a driver works with a device when using OF
style matching.  If CONFIG_OF is unselected, then it is a nop.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
CC: Greg Kroah-Hartman <gregkh@suse.de>
CC: Michal Simek <monstr@monstr.eu>
CC: Grant Likely <grant.likely@secretlab.ca>
CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: Stephen Rothwell <sfr@canb.auug.org.au>
CC: linux-kernel@vger.kernel.org
CC: microblaze-uclinux@itee.uq.edu.au
CC: linuxppc-dev@ozlabs.org
CC: devicetree-discuss@lists.ozlabs.org
drivers/of/device.c
include/linux/of_device.h