]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Skip adding uclasses with OF_PLATDATA_INST
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 04:25:18 +0000 (17:25 +1300)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:28 +0000 (19:23 +1300)
commit91bcfdf0b6683681c557db55e1d74424fb1cc4fe
treeafb498716b5b8e8d1474a6b614f94cab7b422d11
parent967a7d483ac5b9075d83c59507c8020636000842
dm: core: Skip adding uclasses with OF_PLATDATA_INST

There is no need to ever add new uclasses since these are set up at build
time. Update the code to return an error if this is attempted.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/uclass.c