You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
5 years ago
|
From b28dac3003b4c756b72201bb1d83647e33e2f4f1 Mon Sep 17 00:00:00 2001
|
||
5 years ago
|
From: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
||
|
Date: Fri, 26 Oct 2018 15:14:16 +0100
|
||
5 years ago
|
Subject: [PATCH] staging: vchiq_arm: Register bcm2835-codec as a
|
||
5 years ago
|
platform driver
|
||
|
|
||
|
Following the same pattern as bcm2835-camera and bcm2835-audio,
|
||
|
register the V4L2 codec driver as a platform driver
|
||
|
|
||
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
||
|
---
|
||
|
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 4 ++++
|
||
|
1 file changed, 4 insertions(+)
|
||
|
|
||
|
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
|
||
|
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
|
||
5 years ago
|
@@ -170,6 +170,7 @@ static struct class *vchiq_class;
|
||
|
static struct device *vchiq_dev;
|
||
5 years ago
|
static DEFINE_SPINLOCK(msg_queue_spinlock);
|
||
|
static struct platform_device *bcm2835_camera;
|
||
|
+static struct platform_device *bcm2835_codec;
|
||
|
|
||
|
static const char *const ioctl_names[] = {
|
||
|
"CONNECT",
|
||
5 years ago
|
@@ -3656,6 +3657,9 @@ static int vchiq_probe(struct platform_d
|
||
|
bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera");
|
||
|
if (IS_ERR(bcm2835_camera))
|
||
|
bcm2835_camera = NULL;
|
||
5 years ago
|
+ bcm2835_codec = vchiq_register_child(pdev, "bcm2835-codec");
|
||
|
+ if (IS_ERR(bcm2835_codec))
|
||
|
+ bcm2835_codec = NULL;
|
||
|
|
||
|
return 0;
|
||
|
|