Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Acked-by: Helge Deller <deller@gmx.de>
Link: https://lore.kernel.org/r/87cyjqb5sh.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Kuninori Morimoto and committed by
Rob Herring (Arm)
c005d377 0d4f080e

+4 -2
+2 -1
drivers/gpu/drm/omapdrm/dss/dpi.c
··· 16 16 #include <linux/export.h> 17 17 #include <linux/kernel.h> 18 18 #include <linux/of.h> 19 + #include <linux/of_graph.h> 19 20 #include <linux/platform_device.h> 20 21 #include <linux/regulator/consumer.h> 21 22 #include <linux/string.h> ··· 710 709 if (!dpi) 711 710 return -ENOMEM; 712 711 713 - ep = of_get_next_child(port, NULL); 712 + ep = of_graph_get_next_port_endpoint(port, NULL); 714 713 if (!ep) 715 714 return 0; 716 715
+2 -1
drivers/gpu/drm/omapdrm/dss/sdi.c
··· 11 11 #include <linux/export.h> 12 12 #include <linux/kernel.h> 13 13 #include <linux/of.h> 14 + #include <linux/of_graph.h> 14 15 #include <linux/platform_device.h> 15 16 #include <linux/regulator/consumer.h> 16 17 #include <linux/string.h> ··· 347 346 if (!sdi) 348 347 return -ENOMEM; 349 348 350 - ep = of_get_next_child(port, NULL); 349 + ep = of_graph_get_next_port_endpoint(port, NULL); 351 350 if (!ep) { 352 351 r = 0; 353 352 goto err_free;