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 278/806] staging: vchiq_arm: Register vcsm-cma as a platform
7 Following the same pattern as bcm2835-camera and bcm2835-audio,
8 register the vcsm-cma driver as a platform driver
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
12 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 4 ++++
13 1 file changed, 4 insertions(+)
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;
23 static const char *const ioctl_names[] = {
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));
29 + vcsm_cma = vchiq_register_child(pdev, "vcsm-cma");
30 + if (IS_ERR(vcsm_cma))
32 bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera");
33 if (IS_ERR(bcm2835_camera))
34 bcm2835_camera = NULL;