mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
W1: Add device tree support to MXC onewire master.
Signed-off-by: Martin Fuzzey <[email protected]> Acked-by: Sascha Hauer <[email protected]> Acked-by: Evgeniy Polyakov <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
This commit is contained in:
parent
96574a6dc6
commit
28c55dc1ac
2 changed files with 27 additions and 1 deletions
|
|
@ -186,9 +186,16 @@ static int mxc_w1_remove(struct platform_device *pdev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct of_device_id mxc_w1_dt_ids[] = {
|
||||
{ .compatible = "fsl,imx21-owire" },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, mxc_w1_dt_ids);
|
||||
|
||||
static struct platform_driver mxc_w1_driver = {
|
||||
.driver = {
|
||||
.name = "mxc_w1",
|
||||
.name = "mxc_w1",
|
||||
.of_match_table = mxc_w1_dt_ids,
|
||||
},
|
||||
.probe = mxc_w1_probe,
|
||||
.remove = mxc_w1_remove,
|
||||
|
|
|
|||
Loading…
Reference in a new issue