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

drm/exynos: Make use of the helper component_compare_dev

Use the common compare helper from component.

Cc: Inki Dae <inki.dae@samsung.com>
Cc: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: Seung-Woo Kim <sw0312.kim@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Cc: linux-samsung-soc@vger.kernel.org
Signed-off-by: NYong Wu <yong.wu@mediatek.com>
Link: https://lore.kernel.org/r/20220214060819.7334-15-yong.wu@mediatek.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 f798aa41
...@@ -212,11 +212,6 @@ static struct exynos_drm_driver_info exynos_drm_drivers[] = { ...@@ -212,11 +212,6 @@ static struct exynos_drm_driver_info exynos_drm_drivers[] = {
} }
}; };
static int compare_dev(struct device *dev, void *data)
{
return dev == (struct device *)data;
}
static struct component_match *exynos_drm_match_add(struct device *dev) static struct component_match *exynos_drm_match_add(struct device *dev)
{ {
struct component_match *match = NULL; struct component_match *match = NULL;
...@@ -234,8 +229,7 @@ static struct component_match *exynos_drm_match_add(struct device *dev) ...@@ -234,8 +229,7 @@ static struct component_match *exynos_drm_match_add(struct device *dev)
if (!(info->flags & DRM_FIMC_DEVICE) || if (!(info->flags & DRM_FIMC_DEVICE) ||
exynos_drm_check_fimc_device(d) == 0) exynos_drm_check_fimc_device(d) == 0)
component_match_add(dev, &match, component_match_add(dev, &match, component_compare_dev, d);
compare_dev, d);
p = d; p = d;
} }
put_device(p); put_device(p);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册