dm: core: Drop device removal error path when not supported
authorSimon Glass <sjg@chromium.org>
Sat, 28 Feb 2015 05:06:33 +0000 (22:06 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 23 Apr 2015 15:05:52 +0000 (09:05 -0600)
commit5a87c4174d18fe40dcc847ba36853a9f15cb3e1e
tree4ce2588c51d949dd13ce47caf958f2881a422754
parent66312374dca86e77fc9b08f774546e62b6cd1aa7
dm: core: Drop device removal error path when not supported

When CONFIG_DM_DEVICE_REMOVE is not enabled, such as in SPL, we cannot
remove or unbind devices and do not expect to get errors when binding
and probing devices. So drop the error path to reduce code size.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c