sandbox: sandbox_serial_pending depends on DM_VIDEO
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 21 Jan 2022 15:07:30 +0000 (16:07 +0100)
committerSimon Glass <sjg@chromium.org>
Tue, 25 Jan 2022 19:36:11 +0000 (12:36 -0700)
commitce51884f5181573eaf3d62c4f84e19b80899aba6
tree9522e36ad10f8d8fb6d4dfb0fa0b51969d576665
parent3e7749eaeac8022329df9dd876b7fc5692d0e2d1
sandbox: sandbox_serial_pending depends on DM_VIDEO

When building sandbox_defconfig with CONFIG_DM_VIDEO=n a link time error
occurs:

   in function `sandbox_serial_pending':
   drivers/serial/sandbox.c:101: undefined reference to `video_sync_all'

video_sync_all() is only defined if we have CONFIG_DM_VIDEO=y.

Calling this function in a serial driver looks quite hackish
but at least let's add the missing build constraint.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/sandbox.c