mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
media: platform: mtk-mdp3: Remove unused mdp_get_plat_device
mdp_get_plat_device() was added in 2022 but has remained unused.
Remove it.
Fixes: 61890ccaef ("media: platform: mtk-mdp3: add MediaTek MDP3 driver")
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
parent
1b83a9f41b
commit
59f94c57b5
|
|
@ -12,8 +12,6 @@
|
|||
#include <linux/soc/mediatek/mtk-cmdq.h>
|
||||
#include "mtk-img-ipi.h"
|
||||
|
||||
struct platform_device *mdp_get_plat_device(struct platform_device *pdev);
|
||||
|
||||
struct mdp_cmdq_param {
|
||||
struct img_config *config;
|
||||
struct img_ipi_frameparam *param;
|
||||
|
|
|
|||
|
|
@ -79,25 +79,6 @@ static struct platform_device *__get_pdev_by_id(struct platform_device *pdev,
|
|||
return mdp_pdev;
|
||||
}
|
||||
|
||||
struct platform_device *mdp_get_plat_device(struct platform_device *pdev)
|
||||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
struct device_node *mdp_node;
|
||||
struct platform_device *mdp_pdev;
|
||||
|
||||
mdp_node = of_parse_phandle(dev->of_node, MDP_PHANDLE_NAME, 0);
|
||||
if (!mdp_node) {
|
||||
dev_err(dev, "can't get node %s\n", MDP_PHANDLE_NAME);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
mdp_pdev = of_find_device_by_node(mdp_node);
|
||||
of_node_put(mdp_node);
|
||||
|
||||
return mdp_pdev;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mdp_get_plat_device);
|
||||
|
||||
int mdp_vpu_get_locked(struct mdp_dev *mdp)
|
||||
{
|
||||
int ret = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user