7c4a096ce9c8d287c9b73d2030b095667bb43339
[openwrt/staging/jow.git] /
1 From e0f22704bdcaa4b0033e65ce00f585e8b07b26af 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 281/703] 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;