1dc4b98d7a75f705ac505a78fd720657a3ef994c
[openwrt/staging/neocturne.git] /
1 From 5b09b38cca713ea3f2be4ed01d22d69b1ca238cf 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 277/782] 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 @@ -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;
22
23 static const char *const ioctl_names[] = {
24 "CONNECT",
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))
28 bcm2835_audio = 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