aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/w1')
-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 372c8c0d54a0..950d354d50e2 100644
--- a/drivers/w1/masters/mxc_w1.c
+++ b/drivers/w1/masters/mxc_w1.c
@@ -157,9 +157,16 @@ static int mxc_w1_remove(struct platform_device *pdev)
157 return 0; 157 return 0;
158} 158}
159 159
160static struct of_device_id mxc_w1_dt_ids[] = {
161 { .compatible = "fsl,imx21-owire" },
162 { /* sentinel */ }
163};
164MODULE_DEVICE_TABLE(of, mxc_w1_dt_ids);
165
160static struct platform_driver mxc_w1_driver = { 166static struct platform_driver mxc_w1_driver = {
161 .driver = { 167 .driver = {
162 .name = "mxc_w1", 168 .name = "mxc_w1",
169 .of_match_table = mxc_w1_dt_ids,
163 }, 170 },
164 .probe = mxc_w1_probe, 171 .probe = mxc_w1_probe,
165 .remove = mxc_w1_remove, 172 .remove = mxc_w1_remove,