1980fda68d6d81948fa0077905ef8a36f5a7ff6c
[openwrt/staging/xback.git] /
1 From 03a0144820fa1e5b832b8086a82d99b37b7152a1 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Fri, 26 Jun 2020 15:53:44 +0100
4 Subject: [PATCH] media: bcm2835-unicam: Avoid gcc warning over {0} on
5 endpoint
6
7 Older gcc versions object to = { 0 } initialisation if the first
8 elemtn in the structure is a substructure.
9
10 Use = { } to avoid this compiler warning.
11
12 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 ---
14 drivers/media/platform/bcm2835/bcm2835-unicam.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/media/platform/bcm2835/bcm2835-unicam.c
18 +++ b/drivers/media/platform/bcm2835/bcm2835-unicam.c
19 @@ -2586,7 +2586,7 @@ static const struct v4l2_async_notifier_
20 static int of_unicam_connect_subdevs(struct unicam_device *dev)
21 {
22 struct platform_device *pdev = dev->pdev;
23 - struct v4l2_fwnode_endpoint ep = { 0 };
24 + struct v4l2_fwnode_endpoint ep = { };
25 struct device_node *ep_node;
26 struct device_node *sensor_node;
27 unsigned int lane;