Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 61890ccaefaf ("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>

authored by

Dr. David Alan Gilbert and committed by
Hans Verkuil
59f94c57 1b83a9f4

-21
-2
drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.h
··· 12 12 #include <linux/soc/mediatek/mtk-cmdq.h> 13 13 #include "mtk-img-ipi.h" 14 14 15 - struct platform_device *mdp_get_plat_device(struct platform_device *pdev); 16 - 17 15 struct mdp_cmdq_param { 18 16 struct img_config *config; 19 17 struct img_ipi_frameparam *param;
-19
drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.c
··· 79 79 return mdp_pdev; 80 80 } 81 81 82 - struct platform_device *mdp_get_plat_device(struct platform_device *pdev) 83 - { 84 - struct device *dev = &pdev->dev; 85 - struct device_node *mdp_node; 86 - struct platform_device *mdp_pdev; 87 - 88 - mdp_node = of_parse_phandle(dev->of_node, MDP_PHANDLE_NAME, 0); 89 - if (!mdp_node) { 90 - dev_err(dev, "can't get node %s\n", MDP_PHANDLE_NAME); 91 - return NULL; 92 - } 93 - 94 - mdp_pdev = of_find_device_by_node(mdp_node); 95 - of_node_put(mdp_node); 96 - 97 - return mdp_pdev; 98 - } 99 - EXPORT_SYMBOL_GPL(mdp_get_plat_device); 100 - 101 82 int mdp_vpu_get_locked(struct mdp_dev *mdp) 102 83 { 103 84 int ret = 0;