Skip to content

Commit c8d647f

Browse files
naushirpopcornmix
authored andcommitted
staging: vchiq: Load bcm2835_isp driver from vchiq
bcmn2835_isp is a platform driver dependent on vchiq, therefore add the load/unload functions for it to vchiq. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
1 parent d25bac8 commit c8d647f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • drivers/staging/vc04_services/interface/vchiq_arm

‎drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ static struct platform_device *bcm2835_camera;
110110
static struct platform_device *bcm2835_audio;
111111
static struct platform_device *bcm2835_codec;
112112
static struct platform_device *vcsm_cma;
113+
static struct platform_device *bcm2835_isp;
113114

114115
static struct vchiq_drvdata bcm2835_drvdata = {
115116
.cache_line_size = 32,
@@ -2829,6 +2830,7 @@ static int vchiq_probe(struct platform_device *pdev)
28292830
bcm2835_codec = vchiq_register_child(pdev, "bcm2835-codec");
28302831
bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera");
28312832
bcm2835_audio = vchiq_register_child(pdev, "bcm2835_audio");
2833+
bcm2835_isp = vchiq_register_child(pdev, "bcm2835-isp");
28322834

28332835
return 0;
28342836

@@ -2841,6 +2843,7 @@ static int vchiq_probe(struct platform_device *pdev)
28412843

28422844
static int vchiq_remove(struct platform_device *pdev)
28432845
{
2846+
platform_device_unregister(bcm2835_isp);
28442847
platform_device_unregister(bcm2835_audio);
28452848
platform_device_unregister(bcm2835_camera);
28462849
platform_device_unregister(bcm2835_codec);

0 commit comments

Comments
 (0)