[Concept,v2,02/16] video: Mark the vidconsole as a driver model stdio device

Message ID 20250825162727.3185381-3-sjg@u-boot.org
State New
Headers
Series console: Refactor in preparation for the pager |

Commit Message

Simon Glass Aug. 25, 2025, 4:27 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

Set the DEV_FLAGS_DM flag so this stdio device is recognised as being
provided by a driver model device.

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

(no changes since v1)

 drivers/video/vidconsole-uclass.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c
index f1b2d61bd8f..a98344cf9a7 100644
--- a/drivers/video/vidconsole-uclass.c
+++ b/drivers/video/vidconsole-uclass.c
@@ -764,7 +764,7 @@  static int vidconsole_post_probe(struct udevice *dev)
 		strcpy(sdev->name, "vidconsole");
 	}
 
-	sdev->flags = DEV_FLAGS_OUTPUT;
+	sdev->flags = DEV_FLAGS_OUTPUT | DEV_FLAGS_DM;
 	sdev->putc = vidconsole_putc;
 	sdev->puts = vidconsole_puts;
 	sdev->priv = dev;