提交 f798aa41 编写于 作者: Y Yong Wu 提交者: Greg Kroah-Hartman

drm/rockchip: Make use of the helper component_compare_dev

Use the common compare helper from component.

Cc: Sandy Huang <hjc@rock-chips.com>
Cc: "Heiko St¨¹bner" <heiko@sntech.de>
Cc: linux-rockchip@lists.infradead.org
Acked-by: NHeiko Stuebner <heiko@sntech.de>
Signed-off-by: NYong Wu <yong.wu@mediatek.com>
Link: https://lore.kernel.org/r/20220214060819.7334-14-yong.wu@mediatek.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 6817222e
...@@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep) ...@@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
return false; return false;
} }
static int compare_dev(struct device *dev, void *data)
{
return dev == (struct device *)data;
}
static void rockchip_drm_match_remove(struct device *dev) static void rockchip_drm_match_remove(struct device *dev)
{ {
struct device_link *link; struct device_link *link;
...@@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev) ...@@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
break; break;
device_link_add(dev, d, DL_FLAG_STATELESS); device_link_add(dev, d, DL_FLAG_STATELESS);
component_match_add(dev, &match, compare_dev, d); component_match_add(dev, &match, component_compare_dev, d);
} while (true); } while (true);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册