staging: vchiq_arm: Register bcm2835-codec as a platform driver
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Fri, 26 Oct 2018 14:14:16 +0000 (15:14 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:14 +0000 (00:08 +0100)
Following the same pattern as bcm2835-camera and bcm2835-audio,
register the V4L2 codec driver as a platform driver

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

index d3b5a00..7b07d6e 100644 (file)
@@ -171,6 +171,7 @@ static struct device *vchiq_dev;
 static DEFINE_SPINLOCK(msg_queue_spinlock);
 static struct platform_device *bcm2835_camera;
 static struct platform_device *bcm2835_audio;
+static struct platform_device *bcm2835_codec;
 
 static const char *const ioctl_names[] = {
        "CONNECT",
@@ -3660,6 +3661,9 @@ static int vchiq_probe(struct platform_device *pdev)
        bcm2835_audio = vchiq_register_child(pdev, "bcm2835_audio");
        if (IS_ERR(bcm2835_audio))
                bcm2835_audio = NULL;
+       bcm2835_codec = vchiq_register_child(pdev, "bcm2835-codec");
+       if (IS_ERR(bcm2835_codec))
+               bcm2835_codec = NULL;
 
        return 0;