Skip to content

Commit a7fb577

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 <[email protected]>
1 parent a00fedf commit a7fb577

File tree

1 file changed

+3
-0
lines changed
  • drivers/staging/vc04_services/interface/vchiq_arm

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ static struct platform_device *bcm2835_camera;
6969
static struct platform_device *bcm2835_audio;
7070
static struct platform_device *bcm2835_codec;
7171
static struct platform_device *vcsm_cma;
72+
static struct platform_device *bcm2835_isp;
7273

7374
struct vchiq_drvdata {
7475
const unsigned int cache_line_size;
@@ -1863,6 +1864,7 @@ static int vchiq_probe(struct platform_device *pdev)
18631864
bcm2835_codec = vchiq_register_child(pdev, "bcm2835-codec");
18641865
bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera");
18651866
bcm2835_audio = vchiq_register_child(pdev, "bcm2835_audio");
1867+
bcm2835_isp = vchiq_register_child(pdev, "bcm2835-isp");
18661868

18671869
return 0;
18681870

@@ -1874,6 +1876,7 @@ static int vchiq_probe(struct platform_device *pdev)
18741876

18751877
static int vchiq_remove(struct platform_device *pdev)
18761878
{
1879+
platform_device_unregister(bcm2835_isp);
18771880
platform_device_unregister(bcm2835_audio);
18781881
platform_device_unregister(bcm2835_camera);
18791882
platform_device_unregister(bcm2835_codec);

0 commit comments

Comments
 (0)