16174ccef722a5eb2afb17ea0b8225a6af291297
[openwrt/staging/blocktrron.git] /
1 From 4b5d410e14c583f2df3d9c93a183cbab374d2b4d Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Fri, 26 Oct 2018 15:19:40 +0100
4 Subject: [PATCH 278/782] staging: vchiq_arm: Register vcsm-cma as a platform
5 driver
6
7 Following the same pattern as bcm2835-camera and bcm2835-audio,
8 register the vcsm-cma 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 @@ -172,6 +172,7 @@ static DEFINE_SPINLOCK(msg_queue_spinloc
18 static struct platform_device *bcm2835_camera;
19 static struct platform_device *bcm2835_audio;
20 static struct platform_device *bcm2835_codec;
21 +static struct platform_device *vcsm_cma;
22
23 static const char *const ioctl_names[] = {
24 "CONNECT",
25 @@ -3655,6 +3656,9 @@ static int vchiq_probe(struct platform_d
26 VCHIQ_VERSION, VCHIQ_VERSION_MIN,
27 MAJOR(vchiq_devid), MINOR(vchiq_devid));
28
29 + vcsm_cma = vchiq_register_child(pdev, "vcsm-cma");
30 + if (IS_ERR(vcsm_cma))
31 + vcsm_cma = NULL;
32 bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera");
33 if (IS_ERR(bcm2835_camera))
34 bcm2835_camera = NULL;