]> rtime.felk.cvut.cz Git - shark/motorek-5200.git/blobdiff - motorek.c
Each device has a unique name
[shark/motorek-5200.git] / motorek.c
index b0c15e27ad7f529c95c91cd2db10d6f51534c23a..205297f7b8818d20c3648d540f235781224fb625 100644 (file)
--- a/motorek.c
+++ b/motorek.c
@@ -214,7 +214,7 @@ static int __init motorek_init_module(void)
 
        for_each_node_by_type(dn, "motorek") {
                if (!of_find_device_by_node(dn)) {
-                       dev = of_platform_device_create(dn, "motorek", NULL);
+                       dev = of_platform_device_create(dn, NULL, NULL);
                        if (!dev)
                                return -ENOMEM;
                }