X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fdm%2Froot.h;h=3cf730dcee1cb50e9aa5ba3376ae48fc97603cdb;hb=e160f7d430f163bc42757aff3bf2bcac0a459f02;hp=c7f0c1d5ca302acd8bd89887b5bc8c53119af4dd;hpb=740f41d3cbefe2068247852220226c2c3b287249;p=u-boot diff --git a/include/dm/root.h b/include/dm/root.h index c7f0c1d5ca..3cf730dcee 100644 --- a/include/dm/root.h +++ b/include/dm/root.h @@ -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 *