We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35ca882 commit f8b3f5eCopy full SHA for f8b3f5e
drivers/gpu/drm/mcde/mcde_drv.c
@@ -265,11 +265,6 @@ static struct platform_driver *const mcde_component_drivers[] = {
265
&mcde_dsi_driver,
266
};
267
268
-static int mcde_compare_dev(struct device *dev, void *data)
269
-{
270
- return dev == data;
271
-}
272
-
273
static int mcde_probe(struct platform_device *pdev)
274
{
275
struct device *dev = &pdev->dev;
@@ -399,7 +394,7 @@ static int mcde_probe(struct platform_device *pdev)
399
394
400
395
while ((d = platform_find_device_by_driver(p, drv))) {
401
396
put_device(p);
402
- component_match_add(dev, &match, mcde_compare_dev, d);
397
+ component_match_add(dev, &match, component_compare_dev, d);
403
398
p = d;
404
}
405
0 commit comments