c9461eb59d1cac25acfe654307c1e7dd85e364ac
[openwrt/staging/luka.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 @@ -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