Commit 25c7597a authored by Stefan Wahren's avatar Stefan Wahren Committed by Greg Kroah-Hartman

staging: vchiq_arm: Register a platform device for audio

Following Eric's commit 37b7b308 ("staging/vc04_services: Register a
platform device for the camera driver.") this register the audio driver as
a platform device, too.
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 405e2f98
...@@ -167,6 +167,7 @@ static VCHIQ_STATE_T g_state; ...@@ -167,6 +167,7 @@ static VCHIQ_STATE_T g_state;
static struct class *vchiq_class; static struct class *vchiq_class;
static DEFINE_SPINLOCK(msg_queue_spinlock); static DEFINE_SPINLOCK(msg_queue_spinlock);
static struct platform_device *bcm2835_camera; static struct platform_device *bcm2835_camera;
static struct platform_device *bcm2835_audio;
static struct vchiq_drvdata bcm2835_drvdata = { static struct vchiq_drvdata bcm2835_drvdata = {
.cache_line_size = 32, .cache_line_size = 32,
...@@ -3553,6 +3554,7 @@ static int vchiq_probe(struct platform_device *pdev) ...@@ -3553,6 +3554,7 @@ static int vchiq_probe(struct platform_device *pdev)
MAJOR(vchiq_devid), MINOR(vchiq_devid)); MAJOR(vchiq_devid), MINOR(vchiq_devid));
bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera"); bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera");
bcm2835_audio = vchiq_register_child(pdev, "bcm2835_audio");
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment