提交 7c1175f2 编写于 作者: N Naushir Patuck 提交者: Zheng Zengkai

staging: vchiq: Load bcm2835_isp driver from vchiq

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

bcmn2835_isp is a platform driver dependent on vchiq,
therefore add the load/unload functions for it to vchiq.
Signed-off-by: NNaushir Patuck <naush@raspberrypi.com>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 9b767654
...@@ -111,6 +111,7 @@ static struct platform_device *bcm2835_camera; ...@@ -111,6 +111,7 @@ static struct platform_device *bcm2835_camera;
static struct platform_device *bcm2835_audio; static struct platform_device *bcm2835_audio;
static struct platform_device *bcm2835_codec; static struct platform_device *bcm2835_codec;
static struct platform_device *vcsm_cma; static struct platform_device *vcsm_cma;
static struct platform_device *bcm2835_isp;
static struct vchiq_drvdata bcm2835_drvdata = { static struct vchiq_drvdata bcm2835_drvdata = {
.cache_line_size = 32, .cache_line_size = 32,
...@@ -2794,6 +2795,7 @@ static int vchiq_probe(struct platform_device *pdev) ...@@ -2794,6 +2795,7 @@ static int vchiq_probe(struct platform_device *pdev)
bcm2835_codec = vchiq_register_child(pdev, "bcm2835-codec"); bcm2835_codec = vchiq_register_child(pdev, "bcm2835-codec");
bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera"); bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera");
bcm2835_audio = vchiq_register_child(pdev, "bcm2835_audio"); bcm2835_audio = vchiq_register_child(pdev, "bcm2835_audio");
bcm2835_isp = vchiq_register_child(pdev, "bcm2835-isp");
return 0; return 0;
...@@ -2806,6 +2808,7 @@ static int vchiq_probe(struct platform_device *pdev) ...@@ -2806,6 +2808,7 @@ static int vchiq_probe(struct platform_device *pdev)
static int vchiq_remove(struct platform_device *pdev) static int vchiq_remove(struct platform_device *pdev)
{ {
platform_device_unregister(bcm2835_isp);
platform_device_unregister(bcm2835_audio); platform_device_unregister(bcm2835_audio);
platform_device_unregister(bcm2835_camera); platform_device_unregister(bcm2835_camera);
platform_device_unregister(bcm2835_codec); platform_device_unregister(bcm2835_codec);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册