]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Tidy up error handling in device_bind()
authorSimon Glass <sjg@chromium.org>
Sun, 25 Jan 2015 15:26:59 +0000 (08:26 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 30 Jan 2015 00:09:54 +0000 (17:09 -0700)
commit72ebfe86fac2ca0a0e1af9fe1eaa3a634e3e17a1
treec3c07cbe4b7a6b266d59ad118751a821b0a7cc05
parent2f3b95dbc78ce96b0f9f471e688db66223988419
dm: core: Tidy up error handling in device_bind()

Make the error handling more standard to make it easier to build on top of
it. Also correct a bug in the error path where there is no parent.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
drivers/core/device.c