staging: imx-drm-core: use of_graph_parse_endpoint
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 5 Mar 2014 09:20:53 +0000 (10:20 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 7 Mar 2014 16:17:49 +0000 (16:17 +0000)
commitb6babdd93c1e679b49858d1ebe44144e93b744fb
treede33d6fc6536b75b53bef11794028fda894b5ce8
parent655b43ccb7937325db287ab1e4e1ac4ec3f233fe
staging: imx-drm-core: use of_graph_parse_endpoint

Using of_graph_parse_endpoint recovers the port id from an endpoint device
tree node. This just replaces an open coded read of the "reg" property.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/staging/imx-drm/imx-drm-core.c