|
|
@@ -8,7 +8,7 @@ static int __init helloworld_init(void) {
|
|
|
pr_info("Hello world initialization!\n");
|
|
|
|
|
|
// 第一个参数设置为 NULL,从根节点开始查找
|
|
|
- nd = of_find_node_by_name(NULL, "my_backlight");
|
|
|
+ nd = of_find_node_by_path("/my_backlight");
|
|
|
if (nd == NULL) {
|
|
|
printk("my_backlight node not found!\n");
|
|
|
return -EINVAL;
|