]> git.feebdaed.xyz Git - linuxyz.git/commitdiff
gpio
authorseantywork <seantywork@gmail.com>
Fri, 14 Nov 2025 05:30:43 +0000 (14:30 +0900)
committerseantywork <seantywork@gmail.com>
Fri, 14 Nov 2025 05:30:43 +0000 (14:30 +0900)
kdev-gpio/kdev_gpio.c

index c2c54f94d0fa0a7701a6d5a9fc86be3d1a4ce16b..9a1bd24be3a85668c6155faadbeb30e5227822ae 100644 (file)
@@ -23,9 +23,9 @@ static int __init kdev_gpio_init(void){
     int gpio_target = 0;
     struct device_node* dn = NULL;
     struct device* d = NULL;
-    dn = of_find_node_by_name(NULL, "gpio0");
+    dn = of_find_node_by_name(NULL, "gpio");
     if(dn == NULL){
-        printk("failed to find device node: %s\n", TARGET_NAME);
+        printk("failed to find device node: gpio\n");
         return -1;
     }
     gpio_target = of_get_named_gpio(dn, TARGET_NAME, 0);