projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35ca882
)
drm/mcde: Make use of the helper component_compare_dev
author
Yong Wu
<yong.wu@mediatek.com>
Mon, 14 Feb 2022 06:08:11 +0000
(14:08 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 25 Feb 2022 11:16:13 +0000
(12:16 +0100)
Use the common compare helper from component.
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Link:
https://lore.kernel.org/r/20220214060819.7334-16-yong.wu@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/mcde/mcde_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/mcde/mcde_drv.c
b/drivers/gpu/drm/mcde/mcde_drv.c
index 5b5afc6aaf8e19a90f7e9799ab89fd2ec0ea0dc0..a17bfbb152a2f72497c6979a67bc123794ada7ee 100644
(file)
--- a/
drivers/gpu/drm/mcde/mcde_drv.c
+++ b/
drivers/gpu/drm/mcde/mcde_drv.c
@@
-265,11
+265,6
@@
static struct platform_driver *const mcde_component_drivers[] = {
&mcde_dsi_driver,
};
-static int mcde_compare_dev(struct device *dev, void *data)
-{
- return dev == data;
-}
-
static int mcde_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
@@
-399,7
+394,7
@@
static int mcde_probe(struct platform_device *pdev)
while ((d = platform_find_device_by_driver(p, drv))) {
put_device(p);
- component_match_add(dev, &match,
mcde
_compare_dev, d);
+ component_match_add(dev, &match,
component
_compare_dev, d);
p = d;
}
put_device(p);