summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-07-23 06:55:01 -0600
committerSimon Glass <sjg@chromium.org>2014-07-23 14:07:24 +0100
commit9adbd7a116d62349eb0a85b5a08ab3ff0a12d556 (patch)
tree2c5eb3c92fb02ac1f364963becf4dd1321cd3d13 /include/dm
parent7497812d47d4ad17172ec373469a33a6ab8b257e (diff)
downloadu-boot-imx-9adbd7a116d62349eb0a85b5a08ab3ff0a12d556.zip
u-boot-imx-9adbd7a116d62349eb0a85b5a08ab3ff0a12d556.tar.gz
u-boot-imx-9adbd7a116d62349eb0a85b5a08ab3ff0a12d556.tar.bz2
dm: Provide a way to shut down driver model
Add a new method which removes and unbinds all drivers. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/root.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/dm/root.h b/include/dm/root.h
index a4826a6..35818b1 100644
--- a/include/dm/root.h
+++ b/include/dm/root.h
@@ -50,4 +50,12 @@ int dm_scan_fdt(const void *blob);
*/
int dm_init(void);
+/**
+ * dm_uninit - Uninitialise Driver Model structures
+ *
+ * All devices will be removed and unbound
+ * @return 0 if OK, -ve on error
+ */
+int dm_uninit(void);
+
#endif