summaryrefslogtreecommitdiffstats
path: root/drivers/w1/masters/omap_hdq.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-11-08 00:30:32 +0100
committerTony Lindgren <tony@atomide.com>2014-11-11 00:58:47 +0100
commit126e31faa12c0d40c3b603adb9ac6d72dd424860 (patch)
tree71e335bd684c2aab62824dd34194ef8ee644faa1 /drivers/w1/masters/omap_hdq.c
parentLinux 3.18-rc2 (diff)
downloadlinux-126e31faa12c0d40c3b603adb9ac6d72dd424860.tar.xz
linux-126e31faa12c0d40c3b603adb9ac6d72dd424860.zip
w1: omap-hdq: support device probing with device-tree
This driver has no 'compatible' string and so is not found when using device-tree. Add one with value to match hdqw1w: 1w@480b2000 { device in omap3.dtsi. Signed-off-by: NeilBrown <neilb@suse.de> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/w1/masters/omap_hdq.c')
-rw-r--r--drivers/w1/masters/omap_hdq.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/w1/masters/omap_hdq.c b/drivers/w1/masters/omap_hdq.c
index 9900e8ec7393..03321d6a2684 100644
--- a/drivers/w1/masters/omap_hdq.c
+++ b/drivers/w1/masters/omap_hdq.c
@@ -72,11 +72,18 @@ struct hdq_data {
static int omap_hdq_probe(struct platform_device *pdev);
static int omap_hdq_remove(struct platform_device *pdev);
+static struct of_device_id omap_hdq_dt_ids[] = {
+ { .compatible = "ti,omap3-1w" },
+ {}
+};
+MODULE_DEVICE_TABLE(of, omap_hdq_dt_ids);
+
static struct platform_driver omap_hdq_driver = {
.probe = omap_hdq_probe,
.remove = omap_hdq_remove,
.driver = {
.name = "omap_hdq",
+ .of_match_table = omap_hdq_dt_ids,
},
};