Commit 8bd824b3 authored by Dave Stevenson's avatar Dave Stevenson Committed by popcornmix
Browse files

staging: vchiq_arm: Register bcm2835-codec as a platform driver



Following the same pattern as bcm2835-camera and bcm2835-audio,
register the V4L2 codec driver as a platform driver

Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.org>
parent f9e82502
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@ static struct device *vchiq_dev;
static DEFINE_SPINLOCK(msg_queue_spinlock);
static struct platform_device *bcm2835_camera;
static struct platform_device *bcm2835_audio;
static struct platform_device *bcm2835_codec;

static const char *const ioctl_names[] = {
	"CONNECT",
@@ -3660,6 +3661,9 @@ static int vchiq_probe(struct platform_device *pdev)
	bcm2835_audio = vchiq_register_child(pdev, "bcm2835_audio");
	if (IS_ERR(bcm2835_audio))
		bcm2835_audio = NULL;
	bcm2835_codec = vchiq_register_child(pdev, "bcm2835-codec");
	if (IS_ERR(bcm2835_codec))
		bcm2835_codec = NULL;

	return 0;