diff options
author | Yong Wu <[email protected]> | 2022-02-14 14:08:12 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-02-25 12:16:13 +0100 |
commit | 419838bcf74f8ecbddb5d3c2492dba86e4881636 (patch) | |
tree | 9e066fbde0777c767354f1bc85532f6894af1c4f | |
parent | f8b3f5e81479b4508719d2e49273b46cfa2f3e5f (diff) |
drm/omap: dss: Make use of the helper component_compare_dev
Use the common compare helper from component.
Cc: Tomi Valkeinen <[email protected]>
Cc: Cai Huoqing <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Signed-off-by: Yong Wu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/dss.c | 8 |
1 files changed, 1 insertions, 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; } |