mirror of
https://github.com/54shady/kernel_drivers_examples.git
synced 2025-08-15 02:39:36 +00:00
leak dt desc for myled
This commit is contained in:
@ -71,6 +71,14 @@ static int myled_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if 0//需要在DT里root节点下添加myled的节点
|
||||
/{
|
||||
myled {
|
||||
compatible = "myled";
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
static const struct of_device_id myled_dt_ids[] = {
|
||||
{ .compatible = "myled", .data = NULL, },
|
||||
{ /* sentinel */ }
|
||||
|
Reference in New Issue
Block a user