1 From b28dac3003b4c756b72201bb1d83647e33e2f4f1 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Fri, 26 Oct 2018 15:14:16 +0100
4 Subject: [PATCH] staging: vchiq_arm: Register bcm2835-codec as a
7 Following the same pattern as bcm2835-camera and bcm2835-audio,
8 register the V4L2 codec driver as a platform driver
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
12 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 4 ++++
13 1 file changed, 4 insertions(+)
15 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
16 +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
17 @@ -171,6 +171,7 @@ static struct device *vchiq_dev;
18 static DEFINE_SPINLOCK(msg_queue_spinlock);
19 static struct platform_device *bcm2835_camera;
20 static struct platform_device *bcm2835_audio;
21 +static struct platform_device *bcm2835_codec;
23 static const char *const ioctl_names[] = {
25 @@ -3660,6 +3661,9 @@ static int vchiq_probe(struct platform_d
26 bcm2835_audio = vchiq_register_child(pdev, "bcm2835_audio");
27 if (IS_ERR(bcm2835_audio))
29 + bcm2835_codec = vchiq_register_child(pdev, "bcm2835-codec");
30 + if (IS_ERR(bcm2835_codec))
31 + bcm2835_codec = NULL;