Commit f790ce38 authored by Yong Wu's avatar Yong Wu Committed by Greg Kroah-Hartman
Browse files

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: default avatarYong Wu <yong.wu@mediatek.com>
Link: https://lore.kernel.org/r/20220214060819.7334-23-yong.wu@mediatek.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5730c81d
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -1193,12 +1193,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;
}

static int dss_add_child_component(struct device *dev, void *data)
{
	struct component_match **match = data;
@@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *dev, void *data)
	if (strstr(dev_name(dev), "rfbi"))
		return 0;

	component_match_add(dev->parent, match, dss_component_compare, dev);
	component_match_add(dev->parent, match, component_compare_dev, dev);

	return 0;
}