51cc4a4632a8b5757b60b93309b156cf7a80e59c
[openwrt/staging/lynxis.git] /
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
5 platform driver
6
7 Following the same pattern as bcm2835-camera and bcm2835-audio,
8 register the V4L2 codec driver as a platform driver
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
11 ---
12 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 4 ++++
13 1 file changed, 4 insertions(+)
14
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 @@ -170,6 +170,7 @@ static struct class *vchiq_class;
18 static struct device *vchiq_dev;
19 static DEFINE_SPINLOCK(msg_queue_spinlock);
20 static struct platform_device *bcm2835_camera;
21 +static struct platform_device *bcm2835_codec;
22
23 static const char *const ioctl_names[] = {
24 "CONNECT",
25 @@ -3656,6 +3657,9 @@ static int vchiq_probe(struct platform_d
26 bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera");
27 if (IS_ERR(bcm2835_camera))
28 bcm2835_camera = NULL;
29 + bcm2835_codec = vchiq_register_child(pdev, "bcm2835-codec");
30 + if (IS_ERR(bcm2835_codec))
31 + bcm2835_codec = NULL;
32
33 return 0;
34