aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-02-17 02:37:15 -0700
committerGrant Likely <grant.likely@secretlab.ca>2011-02-28 01:36:38 -0700
commitb826291c14c396e7aa5d84523aafac117f430902 (patch)
treeebabdbe338cfef0d31fc3f5d77c23f264215eede /include/linux/device.h
parentdt: Typo fix. (diff)
downloadlinux-dev-b826291c14c396e7aa5d84523aafac117f430902.tar.xz
linux-dev-b826291c14c396e7aa5d84523aafac117f430902.zip
drivercore/dt: add a match table pointer to struct device
Add a new .of_match field to struct device which points at the matching device driver .of_match_table entry when a device is probed via the device tree Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index ca5d25225aab..8d8e2675d07f 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -441,6 +441,7 @@ struct device {
struct dev_archdata archdata;
struct device_node *of_node; /* associated device tree node */
+ const struct of_device_id *of_match; /* matching of_device_id from driver */
dev_t devt; /* dev_t, creates the sysfs "dev" */