diff mbox series

[03/26] sandbox: Add a compatible string for spltest

Message ID 20201219174018.1114146-2-sjg@chromium.org
State Accepted
Commit b0603335673e20a075fc1d401bcdb316828e1a6f
Delegated to: Simon Glass
Headers show
Series dm: Preparation for enhanced of-platdata (part C) | expand

Commit Message

Simon Glass Dec. 19, 2020, 5:39 p.m. UTC
At present this driver does not have a compatible string. For it to be
used with the coming of-platadata, it must have one. Update it
accordingly.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/misc/spltest_sandbox.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Simon Glass Dec. 28, 2020, 4:26 p.m. UTC | #1
At present this driver does not have a compatible string. For it to be
used with the coming of-platadata, it must have one. Update it
accordingly.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/misc/spltest_sandbox.c | 6 ++++++
 1 file changed, 6 insertions(+)

Applied to u-boot-dm/next, thanks!
diff mbox series

Patch

diff --git a/drivers/misc/spltest_sandbox.c b/drivers/misc/spltest_sandbox.c
index 3ae6707593e..6b9701a06ae 100644
--- a/drivers/misc/spltest_sandbox.c
+++ b/drivers/misc/spltest_sandbox.c
@@ -8,8 +8,14 @@ 
 #include <dm.h>
 #include <dt-structs.h>
 
+static const struct udevice_id sandbox_spl_ids[] = {
+	{ .compatible = "sandbox,spl-test", },
+	{}  /* sentinel */
+};
+
 U_BOOT_DRIVER(sandbox_spl_test) = {
 	.name	= "sandbox_spl_test",
 	.id	= UCLASS_MISC,
+	.of_match = sandbox_spl_ids,
 	.flags	= DM_FLAG_PRE_RELOC,
 };