]> git.sur5r.net Git - u-boot/blobdiff - drivers/core/simple-bus.c
spl: saveenv: adding saveenv support in SPL
[u-boot] / drivers / core / simple-bus.c
index 913c3ccc70b6a06c22f6e25b4a58eff3874efeaf..5c955da3346b2c1ff665060100b2f875a87cbe50 100644 (file)
@@ -6,7 +6,6 @@
 
 #include <common.h>
 #include <dm.h>
-#include <dm/root.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -41,7 +40,7 @@ static int simple_bus_post_bind(struct udevice *dev)
                plat->size = cell[2];
        }
 
-       return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false);
+       return dm_scan_fdt_dev(dev);
 }
 
 UCLASS_DRIVER(simple_bus) = {
@@ -53,6 +52,7 @@ UCLASS_DRIVER(simple_bus) = {
 
 static const struct udevice_id generic_simple_bus_ids[] = {
        { .compatible = "simple-bus" },
+       { .compatible = "simple-mfd" },
        { }
 };