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 <deller@gmx.de> Cc: linux-omap@vger.kernel.org Cc: linux-fbdev@vger.kernel.org Signed-off-by: Yong Wu <yong.wu@mediatek.com> Link: https://lore.kernel.org/r/20220214060819.7334-23-yong.wu@mediatek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 5730c81 commit f790ce3

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

  • drivers/video/fbdev/omap2/omapfb/dss

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)