]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: Add child_pre_probe() and child_post_remove() methods
authorSimon Glass <sjg@chromium.org>
Wed, 23 Jul 2014 12:55:21 +0000 (06:55 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 23 Jul 2014 13:08:37 +0000 (14:08 +0100)
commita327dee0f40bcdebaba1a3e47f2b9f1ceb970d2a
tree20ba09ee61b51416bc86808abf7315fe6266e1ed
parente59f458de6999b8a786da857e653db6777f675ca
dm: Add child_pre_probe() and child_post_remove() methods

Some devices (particularly bus devices) must track their children, knowing
when a new child is added so that it can be set up for communication on the
bus.

Add a child_pre_probe() method to provide this feature, and a corresponding
child_post_remove() method.

Signed-off-by: Simon Glass <sjg@chromium.org>
doc/driver-model/README.txt
drivers/core/device.c
include/dm/device.h
include/dm/test.h
test/dm/bus.c