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:
parent
4a6b8f27b8
commit
37e82fcb21
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ int main(void)
|
||||||
struct video_buffer *buffers[2], *vbuf;
|
struct video_buffer *buffers[2], *vbuf;
|
||||||
int i, ret, sock, client;
|
int i, ret, sock, client;
|
||||||
struct video_format fmt;
|
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 */
|
/* Prepare Network */
|
||||||
(void)memset(&addr, 0, sizeof(addr));
|
(void)memset(&addr, 0, sizeof(addr));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue