projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11ef5c7
)
drm/sti: Make use of the helper component_compare_of
author
Yong Wu
<yong.wu@mediatek.com>
Mon, 14 Feb 2022 06:08:07 +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: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Link:
https://lore.kernel.org/r/20220214060819.7334-12-yong.wu@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/sti/sti_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/sti/sti_drv.c
b/drivers/gpu/drm/sti/sti_drv.c
index c7efb43b83ee6c502e9fe6c5e0a96231ea3527f1..890c3103f6bdfcd0830d0f343f1be0c4fae9eaed 100644
(file)
--- a/
drivers/gpu/drm/sti/sti_drv.c
+++ b/
drivers/gpu/drm/sti/sti_drv.c
@@
-144,11
+144,6
@@
static const struct drm_driver sti_driver = {
.minor = DRIVER_MINOR,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static int sti_init(struct drm_device *ddev)
{
struct sti_private *private;
@@
-244,7
+239,7
@@
static int sti_platform_probe(struct platform_device *pdev)
child_np = of_get_next_available_child(node, NULL);
while (child_np) {
- drm_of_component_match_add(dev, &match, compare_of,
+ drm_of_component_match_add(dev, &match, comp
onent_comp
are_of,
child_np);
child_np = of_get_next_available_child(node, child_np);
}