dm: core: Allow uclass to set up a device's child before it is probed
authorSimon Glass <sjg@chromium.org>
Sun, 25 Jan 2015 15:27:10 +0000 (08:27 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 30 Jan 2015 00:09:56 +0000 (17:09 -0700)
commit83c7e434c9dd3ca81f8b763e23c1881b973bcf2f
treec0fc096ee51bbcd66ccabd77826e236f49329845
parent1603bf3cc189da65362b83b85831e094a2fe8516
dm: core: Allow uclass to set up a device's child before it is probed

Some buses need to set up their devices before they can be used. This setup
may well be common to all buses in a particular uclass. Support a common
pre-probe method for the uclass, called before any bus devices are probed.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
drivers/core/device.c
drivers/core/uclass.c
include/dm/test.h
include/dm/uclass-internal.h
include/dm/uclass.h
test/dm/bus.c
test/dm/test-fdt.c