[PATCH 15/23] drm/mcde: Make use of the helper component_compare_dev
Yong Wu
yong.wu at mediatek.com
Sun Feb 13 22:08:11 PST 2022
Use the common compare helper from component.
Cc: Linus Walleij <linus.walleij at linaro.org>
Signed-off-by: Yong Wu <yong.wu at mediatek.com>
---
drivers/gpu/drm/mcde/mcde_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/mcde/mcde_drv.c b/drivers/gpu/drm/mcde/mcde_drv.c
index 5b5afc6aaf8e..a17bfbb152a2 100644
--- a/drivers/gpu/drm/mcde/mcde_drv.c
+++ b/drivers/gpu/drm/mcde/mcde_drv.c
@@ -265,11 +265,6 @@ static struct platform_driver *const mcde_component_drivers[] = {
&mcde_dsi_driver,
};
-static int mcde_compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static int mcde_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@ -399,7 +394,7 @@ static int mcde_probe(struct platform_device *pdev)
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, &match, mcde_compare_dev, d);
+ component_match_add(dev, &match, component_compare_dev, d);
p = d;
}
put_device(p);
--
2.18.0
More information about the Linux-mediatek
mailing list