Skip to content

Commit c005d37

Browse files
morimotorobherring
authored andcommitted
gpu: drm: omapdrm: use new of_graph functions
Now we can use new port related functions for port parsing. Use it. Signed-off-by: Kuninori Morimoto <[email protected]> Reviewed-by: Tomi Valkeinen <[email protected]> Acked-by: Helge Deller <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent 0d4f080 commit c005d37

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

drivers/gpu/drm/omapdrm/dss/dpi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/export.h>
1717
#include <linux/kernel.h>
1818
#include <linux/of.h>
19+
#include <linux/of_graph.h>
1920
#include <linux/platform_device.h>
2021
#include <linux/regulator/consumer.h>
2122
#include <linux/string.h>
@@ -709,7 +710,7 @@ int dpi_init_port(struct dss_device *dss, struct platform_device *pdev,
709710
if (!dpi)
710711
return -ENOMEM;
711712

712-
ep = of_get_next_child(port, NULL);
713+
ep = of_graph_get_next_port_endpoint(port, NULL);
713714
if (!ep)
714715
return 0;
715716

drivers/gpu/drm/omapdrm/dss/sdi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/export.h>
1212
#include <linux/kernel.h>
1313
#include <linux/of.h>
14+
#include <linux/of_graph.h>
1415
#include <linux/platform_device.h>
1516
#include <linux/regulator/consumer.h>
1617
#include <linux/string.h>
@@ -346,7 +347,7 @@ int sdi_init_port(struct dss_device *dss, struct platform_device *pdev,
346347
if (!sdi)
347348
return -ENOMEM;
348349

349-
ep = of_get_next_child(port, NULL);
350+
ep = of_graph_get_next_port_endpoint(port, NULL);
350351
if (!ep) {
351352
r = 0;
352353
goto err_free;

0 commit comments

Comments
 (0)