Skip to content

Commit 35ca882

Browse files
YongWu-HFgregkh
authored andcommitted
drm/exynos: Make use of the helper component_compare_dev
Use the common compare helper from component. Cc: Inki Dae <[email protected]> Cc: Joonyoung Shim <[email protected]> Cc: Seung-Woo Kim <[email protected]> Cc: Kyungmin Park <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Cc: [email protected] Signed-off-by: Yong Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f798aa4 commit 35ca882

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/gpu/drm/exynos/exynos_drm_drv.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,6 @@ static struct exynos_drm_driver_info exynos_drm_drivers[] = {
212212
}
213213
};
214214

215-
static int compare_dev(struct device *dev, void *data)
216-
{
217-
return dev == (struct device *)data;
218-
}
219-
220215
static struct component_match *exynos_drm_match_add(struct device *dev)
221216
{
222217
struct component_match *match = NULL;
@@ -234,8 +229,7 @@ static struct component_match *exynos_drm_match_add(struct device *dev)
234229

235230
if (!(info->flags & DRM_FIMC_DEVICE) ||
236231
exynos_drm_check_fimc_device(d) == 0)
237-
component_match_add(dev, &match,
238-
compare_dev, d);
232+
component_match_add(dev, &match, component_compare_dev, d);
239233
p = d;
240234
}
241235
put_device(p);

0 commit comments

Comments
 (0)