Commit c005d377 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Rob Herring (Arm)
Browse files

gpu: drm: omapdrm: use new of_graph functions

parent 0d4f080e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/of_graph.h>
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
#include <linux/string.h>
@@ -709,7 +710,7 @@ int dpi_init_port(struct dss_device *dss, struct platform_device *pdev,
	if (!dpi)
		return -ENOMEM;

	ep = of_get_next_child(port, NULL);
	ep = of_graph_get_next_port_endpoint(port, NULL);
	if (!ep)
		return 0;

+2 −1
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/of_graph.h>
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
#include <linux/string.h>
@@ -346,7 +347,7 @@ int sdi_init_port(struct dss_device *dss, struct platform_device *pdev,
	if (!sdi)
		return -ENOMEM;

	ep = of_get_next_child(port, NULL);
	ep = of_graph_get_next_port_endpoint(port, NULL);
	if (!ep) {
		r = 0;
		goto err_free;