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>
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",
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;