bcm27xx: update patches from RPi foundation
[oweals/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0682-staging-vchiq-Load-bcm2835_isp-driver-from-vchiq.patch
1 From 7f2f9b54862f7df5cdef95b85234fad83b6b3480 Mon Sep 17 00:00:00 2001
2 From: Naushir Patuck <naush@raspberrypi.com>
3 Date: Wed, 22 Apr 2020 08:32:32 +0100
4 Subject: [PATCH] staging: vchiq: Load bcm2835_isp driver from vchiq
5
6 bcmn2835_isp is a platform driver dependent on vchiq,
7 therefore add the load/unload functions for it to vchiq.
8
9 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
10 ---
11  drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 3 +++
12  1 file changed, 3 insertions(+)
13
14 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
15 +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
16 @@ -142,6 +142,7 @@ static struct platform_device *bcm2835_c
17  static struct platform_device *bcm2835_audio;
18  static struct platform_device *bcm2835_codec;
19  static struct platform_device *vcsm_cma;
20 +static struct platform_device *bcm2835_isp;
21  
22  static struct vchiq_drvdata bcm2835_drvdata = {
23         .cache_line_size = 32,
24 @@ -3281,6 +3282,7 @@ static int vchiq_probe(struct platform_d
25         bcm2835_codec = vchiq_register_child(pdev, "bcm2835-codec");
26         bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera");
27         bcm2835_audio = vchiq_register_child(pdev, "bcm2835_audio");
28 +       bcm2835_isp = vchiq_register_child(pdev, "bcm2835-isp");
29  
30         return 0;
31  
32 @@ -3293,6 +3295,7 @@ failed_platform_init:
33  
34  static int vchiq_remove(struct platform_device *pdev)
35  {
36 +       platform_device_unregister(bcm2835_isp);
37         platform_device_unregister(bcm2835_audio);
38         platform_device_unregister(bcm2835_camera);
39         platform_device_unregister(bcm2835_codec);