6bfa52dfe6568ac957a2183541cf4abc85ddf7ad
[openwrt/staging/981213.git] /
1 From 69c5c6d62b457ee88e55c4090dc09c0441b059f2 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] 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 @@ -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_codec;
21 +static struct platform_device *vcsm_cma;
22
23 static const char *const ioctl_names[] = {
24 "CONNECT",
25 @@ -3654,6 +3655,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;