From 9adbd7a116d62349eb0a85b5a08ab3ff0a12d556 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 23 Jul 2014 06:55:01 -0600 Subject: dm: Provide a way to shut down driver model Add a new method which removes and unbinds all drivers. Signed-off-by: Simon Glass Acked-by: Marek Vasut --- include/dm/root.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/dm/root.h') 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 -- cgit v1.1