samples: video: tcpserversink: fix build failure

The nxp,imx-csi node was removed from dts in a previous commit
which caused a build failure / regression in CI.

Use DEVICE_DT_GET_ANY() instead of DEVICE_DT_GET_ONE(), since
the latter requires a DT node present, while the former does
not and returns NULL if no such compat exists.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
This commit is contained in:
Chris Friedt 2024-06-01 09:03:15 -04:00 committed by Anas Nashif
commit 37e82fcb21

View file

@ -40,7 +40,7 @@ int main(void)
struct video_buffer *buffers[2], *vbuf;
int i, ret, sock, client;
struct video_format fmt;
const struct device *const video = DEVICE_DT_GET_ONE(nxp_imx_csi);
const struct device *const video = DEVICE_DT_GET_ANY(nxp_imx_csi);
/* Prepare Network */
(void)memset(&addr, 0, sizeof(addr));