Skip to content

Commit f790ce3

Browse files
YongWu-HFgregkh
authored andcommitted
video: omapfb: dss: Make use of the helper component_compare_dev
Use the common compare helper from component. Cc: Helge Deller <[email protected]> Cc: [email protected] Cc: [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 5730c81 commit f790ce3

File tree

1 file changed

+1
-7
lines changed
  • drivers/video/fbdev/omap2/omapfb/dss

1 file changed

+1
-7
lines changed

drivers/video/fbdev/omap2/omapfb/dss/dss.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,12 +1193,6 @@ static const struct component_master_ops dss_component_ops = {
11931193
.unbind = dss_unbind,
11941194
};
11951195

1196-
static int dss_component_compare(struct device *dev, void *data)
1197-
{
1198-
struct device *child = data;
1199-
return dev == child;
1200-
}
1201-
12021196
static int dss_add_child_component(struct device *dev, void *data)
12031197
{
12041198
struct component_match **match = data;
@@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *dev, void *data)
12121206
if (strstr(dev_name(dev), "rfbi"))
12131207
return 0;
12141208

1215-
component_match_add(dev->parent, match, dss_component_compare, dev);
1209+
component_match_add(dev->parent, match, component_compare_dev, dev);
12161210

12171211
return 0;
12181212
}

0 commit comments

Comments
 (0)