mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]>
Acked-by: Evgeniy Polyakov <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
This commit is contained in:
parent
cac7f24298
commit
126e31faa1
2 changed files with 24 additions and 0 deletions
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue