dm: core: Remove unbind operations when not required
authorSimon Glass <sjg@chromium.org>
Sat, 28 Feb 2015 05:06:31 +0000 (22:06 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 23 Apr 2015 15:05:52 +0000 (09:05 -0600)
commit7f9875e733b79556ade508b88f88ac1f8a2c7e3c
tree1ee6eb181cd092140684beb5d4021862944e3463
parent36fa61dc612e363fb60840a06333fc37ec3fb68e
dm: core: Remove unbind operations when not required

The CONFIG_DM_DEVICE_REMOVE option takes out code related to removing
devices. It should also remove the 'unbind' code since if we cannot
remove we probably don't need to unbind.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/uclass.c
include/dm/uclass-internal.h