]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/core/root.c
dm: Provide a way to shut down driver model
[karo-tx-uboot.git] / drivers / core / root.c
index ac1c1648f30dbdc6f6ce168290381c48020784e1..346d462470e34716f2b3c8f930cce4d938c3f19d 100644 (file)
@@ -56,6 +56,14 @@ int dm_init(void)
        return 0;
 }
 
+int dm_uninit(void)
+{
+       device_remove(dm_root());
+       device_unbind(dm_root());
+
+       return 0;
+}
+
 int dm_scan_platdata(void)
 {
        int ret;