summaryrefslogtreecommitdiff
path: root/drivers/core/uclass.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-05 09:30:59 -0700
committerSimon Glass <sjg@chromium.org>2016-01-20 19:06:22 -0700
commit20af3c0a0034b885cd269cb7abdc2d933d82a723 (patch)
tree336a18d741ee1b2486c1e34837fffe157ce8ed7f /drivers/core/uclass.c
parent72b335e91d41ff5dfecdea57d3397f368bb488f5 (diff)
downloadu-boot-20af3c0a0034b885cd269cb7abdc2d933d82a723.tar.gz
dm: core: Call uclass post_bind() after the driver's bind() method
At present the uclass's post_bind() method is called before the driver's bind() method. This means that the uclass cannot use any of the information set up by the driver. Move it later in the sequence to permit this. This is an ordering change which is always fairly major in nature. The main impact is that devices which have children will not see them appear in their bind() method. From what I can see, existing drivers do not look at their children in the bind() method, so this should be safe. Conceptually this change seems to result in a 'more correct' ordering, since the uclass (which is broader than the device) gets the last word. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/core/uclass.c')
-rw-r--r--drivers/core/uclass.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c
index 36bcf197aa..e1acefe727 100644
--- a/drivers/core/uclass.c
+++ b/drivers/core/uclass.c
@@ -430,11 +430,6 @@ int uclass_bind_device(struct udevice *dev)
goto err;
}
}
- if (uc->uc_drv->post_bind) {
- ret = uc->uc_drv->post_bind(dev);
- if (ret)
- goto err;
- }
return 0;
err: