Skip to content

Commit 4c470f1

Browse files
committed
staging: vchiq_arm: Register bcm2835-camera as a platform driver
Following the same pattern as bcm2835-codec and bcm2835-audio, register the V4L2 camera driver as a platform driver Signed-off-by: Dave Stevenson <[email protected]>
1 parent 922bb42 commit 4c470f1

File tree

1 file changed

+3
-0
lines changed
  • drivers/platform/raspberrypi/vchiq-interface

1 file changed

+3
-0
lines changed

drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
static struct vchiq_device *bcm2835_audio;
6767
static struct vchiq_device *bcm2835_isp;
6868
static struct vchiq_device *bcm2835_codec;
69+
static struct vchiq_device *bcm2835_camera;
6970
static struct vchiq_device *vcsm_cma;
7071

7172
static const struct vchiq_platform_info bcm2835_info = {
@@ -1793,6 +1794,7 @@ static int vchiq_probe(struct platform_device *pdev)
17931794
vchiq_debugfs_init(&mgmt->state);
17941795

17951796
vcsm_cma = vchiq_device_register(&pdev->dev, "vcsm-cma");
1797+
bcm2835_camera = vchiq_device_register(&pdev->dev, "bcm2835-camera");
17961798
bcm2835_codec = vchiq_device_register(&pdev->dev, "bcm2835-codec");
17971799
bcm2835_audio = vchiq_device_register(&pdev->dev, "bcm2835-audio");
17981800
bcm2835_isp = vchiq_device_register(&pdev->dev, "bcm2835-isp");
@@ -1807,6 +1809,7 @@ static void vchiq_remove(struct platform_device *pdev)
18071809
vchiq_device_unregister(bcm2835_isp);
18081810
vchiq_device_unregister(bcm2835_audio);
18091811
vchiq_device_unregister(bcm2835_codec);
1812+
vchiq_device_unregister(bcm2835_camera);
18101813
vchiq_device_unregister(vcsm_cma);
18111814
vchiq_debugfs_deinit();
18121815
vchiq_deregister_chrdev();

0 commit comments

Comments
 (0)