]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: Call video_sync in video_clear()
authorMichal Simek <michal.simek@xilinx.com>
Tue, 15 Dec 2020 14:12:09 +0000 (15:12 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 5 Jan 2021 10:54:53 +0000 (11:54 +0100)
There is a need to call sync when anybody asking for clearing display.
For example via cls command.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/video-uclass.c

index 938e7d371311f52682e86aab6e1108a3ba2b2c83..21452a1cda97b90e1cbfa9682b435dcbae282d56 100644 (file)
@@ -143,7 +143,7 @@ int video_clear(struct udevice *dev)
        if (ret)
                return ret;
 
-       return 0;
+       return video_sync(dev, false);
 }
 
 void video_set_default_colors(struct udevice *dev, bool invert)