media: bcm2835-unicam: Avoid gcc warning over {0} on endpoint
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Fri, 26 Jun 2020 14:53:44 +0000 (15:53 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:34:15 +0000 (16:34 +0100)
Older gcc versions object to = { 0 } initialisation if the first
elemtn in the structure is a substructure.

Use = { } to avoid this compiler warning.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/platform/bcm2835/bcm2835-unicam.c

index f2cd208..f70167d 100644 (file)
@@ -2578,7 +2578,7 @@ static const struct v4l2_async_notifier_operations unicam_async_ops = {
 static int of_unicam_connect_subdevs(struct unicam_device *dev)
 {
        struct platform_device *pdev = dev->pdev;
-       struct v4l2_fwnode_endpoint ep = { };
+       struct v4l2_fwnode_endpoint ep = { };
        struct device_node *ep_node;
        struct device_node *sensor_node;
        unsigned int lane;