[PATCH 16/23] drm/omap: dss: Make use of the helper component_compare_dev
Yong Wu
yong.wu at mediatek.com
Sun Feb 13 22:08:12 PST 2022
Use the common compare helper from component.
Cc: Tomi Valkeinen <tomba at kernel.org>
Cc: Cai Huoqing <caihuoqing at baidu.com>
Cc: Arnd Bergmann <arnd at arndb.de>
Cc: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Signed-off-by: Yong Wu <yong.wu at mediatek.com>
---
drivers/gpu/drm/omapdrm/dss/dss.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c
index 69b3e15b9356..0399f3390a0a 100644
--- a/drivers/gpu/drm/omapdrm/dss/dss.c
+++ b/drivers/gpu/drm/omapdrm/dss/dss.c
@@ -1344,12 +1344,6 @@ static const struct component_master_ops dss_component_ops = {
.unbind = dss_unbind,
};
-static int dss_component_compare(struct device *dev, void *data)
-{
- struct device *child = data;
- return dev == child;
-}
-
struct dss_component_match_data {
struct device *dev;
struct component_match **match;
@@ -1379,7 +1373,7 @@ static int dss_add_child_component(struct device *dev, void *data)
return device_for_each_child(dev, cmatch,
dss_add_child_component);
- component_match_add(cmatch->dev, match, dss_component_compare, dev);
+ component_match_add(cmatch->dev, match, component_compare_dev, dev);
return 0;
}
--
2.18.0
More information about the Linux-mediatek
mailing list