bcm27xx: update 6.1 patches from RPi foundation
[openwrt/staging/xback.git] / target / linux / bcm27xx / patches-6.1 / 950-0232-staging-vchiq-Load-bcm2835_isp-driver-from-vchiq.patch
1 From b1c396f775e962e9610db24b9942ee0c9136a13d 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 @@ -69,6 +69,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 struct vchiq_drvdata {
23 const unsigned int cache_line_size;
24 @@ -1863,6 +1864,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 @@ -1874,6 +1876,7 @@ error_exit:
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);