]> git.sur5r.net Git - u-boot/blobdiff - include/dm/root.h
dm: core: Replace of_offset with accessor
[u-boot] / include / dm / root.h
index c7f0c1d5ca302acd8bd89887b5bc8c53119af4dd..3cf730dcee1cb50e9aa5ba3376ae48fc97603cdb 100644 (file)
@@ -21,6 +21,16 @@ struct udevice;
  */
 struct udevice *dm_root(void);
 
+struct global_data;
+/**
+ * dm_fixup_for_gd_move() - Handle global_data moving to a new place
+ *
+ * The uclass list is part of global_data. Due to the way lists work, moving
+ * the list will cause it to become invalid. This function fixes that up so
+ * that the uclass list will work correctly.
+ */
+void dm_fixup_for_gd_move(struct global_data *new_gd);
+
 /**
  * dm_scan_platdata() - Scan all platform data and bind drivers
  *