cmd: bind: Fix driver binding on a device
[platform/kernel/u-boot.git] / cmd / bind.c
index 07c629e..4d1b788 100644 (file)
@@ -152,7 +152,7 @@ static int bind_by_node_path(const char *path, const char *drv_name)
        }
 
        ofnode = ofnode_path(path);
-       ret = lists_bind_fdt(parent, ofnode, &dev, false);
+       ret = lists_bind_fdt(parent, ofnode, &dev, drv, false);
 
        if (!dev || ret) {
                printf("Unable to bind. err:%d\n", ret);