mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-01-23 15:12:55 +01:00
drm/mediatek: Replace custom compare_dev with component_compare_of
Remove the custom device comparison function compare_dev and replace it with the existing kernel helper component_compare_of Signed-off-by: Tang Dongxing <tang.dongxing@zte.com.cn> Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://patchwork.kernel.org/project/dri-devel/patch/20250403155419406T5YhIJKId1FWor70EWWHG@zte.com.cn/ Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
This commit is contained in:
committed by
Chun-Kuang Hu
parent
94c9337165
commit
07c39476a7
@@ -492,11 +492,6 @@ static const struct of_device_id mtk_ovl_adaptor_comp_dt_ids[] = {
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
|
||||
static int compare_of(struct device *dev, void *data)
|
||||
{
|
||||
return dev->of_node == data;
|
||||
}
|
||||
|
||||
static int ovl_adaptor_of_get_ddp_comp_type(struct device_node *node,
|
||||
enum mtk_ovl_adaptor_comp_type *ctype)
|
||||
{
|
||||
@@ -567,7 +562,7 @@ static int ovl_adaptor_comp_init(struct device *dev, struct component_match **ma
|
||||
|
||||
priv->ovl_adaptor_comp[id] = &comp_pdev->dev;
|
||||
|
||||
drm_of_component_match_add(dev, match, compare_of, node);
|
||||
drm_of_component_match_add(dev, match, component_compare_of, node);
|
||||
dev_dbg(dev, "Adding component match for %pOF\n", node);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user