]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/core/device.c
dm: Remove device_probe_child()
[karo-tx-uboot.git] / drivers / core / device.c
index f5def35b5b67c9a9d279b3e7de4c588c0a5a7b94..cb24a617ceef4cd892c5c566725ecda47965ae61 100644 (file)
@@ -223,7 +223,7 @@ static void *alloc_priv(int size, uint flags)
        return priv;
 }
 
-int device_probe_child(struct udevice *dev, void *parent_priv)
+int device_probe(struct udevice *dev)
 {
        const struct driver *drv;
        int size = 0;
@@ -270,8 +270,6 @@ int device_probe_child(struct udevice *dev, void *parent_priv)
                                ret = -ENOMEM;
                                goto fail;
                        }
-                       if (parent_priv)
-                               memcpy(dev->parent_priv, parent_priv, size);
                }
 
                ret = device_probe(dev->parent);
@@ -349,11 +347,6 @@ fail:
        return ret;
 }
 
-int device_probe(struct udevice *dev)
-{
-       return device_probe_child(dev, NULL);
-}
-
 void *dev_get_platdata(struct udevice *dev)
 {
        if (!dev) {