diff options
author | Tomeu Vizoso <[email protected]> | 2016-02-15 09:25:06 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2016-02-16 16:28:51 +0000 |
commit | 656b8035b0eebcac0172b24ca04e448c70dd047f (patch) | |
tree | 9310d64d29e0130957ef33362d34c46392f6b42f /lib/pm-notifier-error-inject.c | |
parent | 17f29d36e4732b91ae299a163d34ed1954500f42 (diff) |
ARM: 8524/1: driver cohandle -EPROBE_DEFER from bus_type.match()
Allow implementations of the match() callback in struct bus_type to
return errors and if it's -EPROBE_DEFER then queue the device for
deferred probing.
This is useful to buses such as AMBA in which devices are registered
before their matching information can be retrieved from the HW
(typically because a clock driver hasn't probed yet).
[changed if-else code structure, adjusted documentation to match the code,
extended comments]
Signed-off-by: Tomeu Vizoso <[email protected]>
Signed-off-by: Marek Szyprowski <[email protected]>
Reviewed-by: Ulf Hansson <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions