gpu: ipu-v3: Assign of_node of child platform devices to corresponding ports
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 9 Nov 2015 15:35:12 +0000 (16:35 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 24 Nov 2015 10:30:17 +0000 (11:30 +0100)
commit304e6be652e2ef2190adf9c23a2a1e5f9f39800d
treef5657ba6bdddc06f1d9b961c57e45b09682ea439
parent99ae78c37391ec308250e32dd64ad875f799808a
gpu: ipu-v3: Assign of_node of child platform devices to corresponding ports

The crtc child device driver shouldn't have to modify the of_node of its
platform device in the probe function. Instead, let the IPU core driver
set the of_node when the platform device is created.

Also reorder the client_reg array so the elements are in port id order
(CSIs first, then DIs).

Suggested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/ipu-v3/ipu-common.c