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
7 Older gcc versions object to = { 0 } initialisation if the first
8 elemtn in the structure is a substructure.
10 Use = { } to avoid this compiler warning.
12 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
14 drivers/media/platform/bcm2835/bcm2835-unicam.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
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)
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;