dm: Allow device removal features to be dropped
authorSimon Glass <sjg@chromium.org>
Tue, 11 Nov 2014 00:16:47 +0000 (17:16 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 21 Nov 2014 07:13:02 +0000 (08:13 +0100)
commit3ac435d33a8f6a4e28df6bc068cb0569bc8061ad
tree9c13282080d8b92f6b83f46b393dd3567ea96610
parent1151651831ff11b3f40d132bb9ab012e95a8faa1
dm: Allow device removal features to be dropped

For SPL we don't expect to need to remove a device. Save some code space
by dropping this feature. The board config can define
CONFIG_DM_DEVICE_REMOVE if this is in fact needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
drivers/core/Makefile
drivers/core/device-remove.c [new file with mode: 0644]
drivers/core/device.c
include/config_defaults.h
include/dm/device-internal.h