]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: platform: mtk-mdp3: Remove unused mdp_get_plat_device
authorDr. David Alan Gilbert <linux@treblig.org>
Wed, 5 Feb 2025 02:18:34 +0000 (02:18 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 15 May 2025 06:13:31 +0000 (08:13 +0200)
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>
drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.h
drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.c

index 935ae98257284ae2cff326e0ef8af04f9acf50b5..222611e03a068bcb63797b1b96a7ed9c93befab8 100644 (file)
@@ -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;
index f571f561f070b94996ded5270486a30349382658..8de2c8e4d333a8f92684f1590a3dd0d13bdadcc6 100644 (file)
@@ -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;