Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1414763 > unrolled thread
| Started by | Thierry Reding <thierry.reding@gmail.com> |
|---|---|
| First post | 2016-06-06 10:40 +0200 |
| Last post | 2016-06-06 10:40 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 19/22] drm/sti: Use of_device_match() Thierry Reding <thierry.reding@gmail.com> - 2016-06-06 10:40 +0200
| From | Thierry Reding <thierry.reding@gmail.com> |
|---|---|
| Date | 2016-06-06 10:40 +0200 |
| Subject | [PATCH 19/22] drm/sti: Use of_device_match() |
| Message-ID | <rGYeK-2qH-43@gated-at.bofh.it> |
From: Thierry Reding <treding@nvidia.com>
Use the common implementation rather than the driver-private variant.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
drivers/gpu/drm/sti/sti_drv.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/sti_drv.c
index 4ee6fa4f1beb..d0ea8c3b8e3c 100644
--- a/drivers/gpu/drm/sti/sti_drv.c
+++ b/drivers/gpu/drm/sti/sti_drv.c
@@ -10,6 +10,7 @@
#include <linux/debugfs.h>
#include <linux/kernel.h>
#include <linux/module.h>
+#include <linux/of_device.h>
#include <linux/of_platform.h>
#include <drm/drm_atomic.h>
@@ -341,11 +342,6 @@ static struct drm_driver sti_driver = {
.minor = DRIVER_MINOR,
};
-static int compare_of(struct device *dev, void *data)
-{
- return dev->of_node == data;
-}
-
static void release_of(struct device *dev, void *data)
{
of_node_put(data);
@@ -381,7 +377,7 @@ static int sti_platform_probe(struct platform_device *pdev)
while (child_np) {
component_match_add_release(dev, &match, release_of,
- compare_of, child_np);
+ of_device_match, child_np);
child_np = of_get_next_available_child(node, child_np);
}
--
2.8.3
Back to top | Article view | linux.kernel
csiph-web