aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1/masters/mxc_w1.c
diff options
context:
space:
mode:
authorMartin Fuzzey <mfuzzey@parkeon.com>2013-01-29 10:46:10 -0500
committerShawn Guo <shawn.guo@linaro.org>2013-02-10 10:25:46 -0500
commit28c55dc1acc863cb29832b5be2464ebcdafdc3d5 (patch)
treee6c4c051e3540b5e55fcda6b278a62037221aa16 /drivers/w1/masters/mxc_w1.c
parent96574a6dc6bee2320276d7468162a72a0e5c3a34 (diff)
W1: Add device tree support to MXC onewire master.
Signed-off-by: Martin Fuzzey <mfuzzey@parkeon.com> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'drivers/w1/masters/mxc_w1.c')
-rw-r--r--drivers/w1/masters/mxc_w1.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c
index 708a25fc9961..949e56669548 100644
--- a/drivers/w1/masters/mxc_w1.c
+++ b/drivers/w1/masters/mxc_w1.c
@@ -186,9 +186,16 @@ static int mxc_w1_remove(struct platform_device *pdev)
186 return 0; 186 return 0;
187} 187}
188 188
189static struct of_device_id mxc_w1_dt_ids[] = {
190 { .compatible = "fsl,imx21-owire" },
191 { /* sentinel */ }
192};
193MODULE_DEVICE_TABLE(of, mxc_w1_dt_ids);
194
189static struct platform_driver mxc_w1_driver = { 195static struct platform_driver mxc_w1_driver = {
190 .driver = { 196 .driver = {
191 .name = "mxc_w1", 197 .name = "mxc_w1",
198 .of_match_table = mxc_w1_dt_ids,
192 }, 199 },
193 .probe = mxc_w1_probe, 200 .probe = mxc_w1_probe,
194 .remove = mxc_w1_remove, 201 .remove = mxc_w1_remove,