Skip to content

Commit f8b3f5e

Browse files
YongWu-HFgregkh
authored andcommitted
drm/mcde: Make use of the helper component_compare_dev
Use the common compare helper from component. Cc: Linus Walleij <[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 35ca882 commit f8b3f5e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/gpu/drm/mcde/mcde_drv.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,6 @@ static struct platform_driver *const mcde_component_drivers[] = {
265265
&mcde_dsi_driver,
266266
};
267267

268-
static int mcde_compare_dev(struct device *dev, void *data)
269-
{
270-
return dev == data;
271-
}
272-
273268
static int mcde_probe(struct platform_device *pdev)
274269
{
275270
struct device *dev = &pdev->dev;
@@ -399,7 +394,7 @@ static int mcde_probe(struct platform_device *pdev)
399394

400395
while ((d = platform_find_device_by_driver(p, drv))) {
401396
put_device(p);
402-
component_match_add(dev, &match, mcde_compare_dev, d);
397+
component_match_add(dev, &match, component_compare_dev, d);
403398
p = d;
404399
}
405400
put_device(p);

0 commit comments

Comments
 (0)