]> git.baikalelectronics.ru Git - uboot.git/commit
syscon: update syscon_node_to_regmap to use the DM functions
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 31 Oct 2018 15:49:03 +0000 (16:49 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 15 Dec 2018 16:49:56 +0000 (11:49 -0500)
commitf54989e1f6d08881e5e5ca4757e85398d9cb4146
tree918155725e45773124d7b61cb61f6a78e3d8845d
parentafddc569db2e8879f85dd23fb6ed33c0e82c3ae5
syscon: update syscon_node_to_regmap to use the DM functions

+ Update the function syscon_node_to_regmap() to force bound on
  syscon uclass and directly use the list of device from DM.
+ Remove the static list syscon_list.

This patch avoid issue (crash) when syscon_node_to_regmap() is called
before and after reallocation (list content is invalid).

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/core/syscon-uclass.c