Skip to content

Commit 419838b

Browse files
YongWu-HFgregkh
authored andcommitted
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]>
1 parent f8b3f5e commit 419838b

File tree

1 file changed

+1
-7
lines changed
  • drivers/gpu/drm/omapdrm/dss

1 file changed

+1
-7
lines changed

drivers/gpu/drm/omapdrm/dss/dss.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,12 +1344,6 @@ static const struct component_master_ops dss_component_ops = {
13441344
.unbind = dss_unbind,
13451345
};
13461346

1347-
static int dss_component_compare(struct device *dev, void *data)
1348-
{
1349-
struct device *child = data;
1350-
return dev == child;
1351-
}
1352-
13531347
struct dss_component_match_data {
13541348
struct device *dev;
13551349
struct component_match **match;
@@ -1379,7 +1373,7 @@ static int dss_add_child_component(struct device *dev, void *data)
13791373
return device_for_each_child(dev, cmatch,
13801374
dss_add_child_component);
13811375

1382-
component_match_add(cmatch->dev, match, dss_component_compare, dev);
1376+
component_match_add(cmatch->dev, match, component_compare_dev, dev);
13831377

13841378
return 0;
13851379
}

0 commit comments

Comments
 (0)