gpu: ipu-v3: default to id 0 on missing OF alias
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 21 Jun 2018 19:13:38 +0000 (21:13 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 2 Aug 2018 10:09:11 +0000 (12:09 +0200)
commit2d87e6c1b99c402360fdfe19ce4f579ab2f96adf
tree6884e0ca4ddaacc2c17ceb8a5cb3945a95afa9b4
parent9f0ba3d92fe63fa72f88238d9dde47a38a7d8f40
gpu: ipu-v3: default to id 0 on missing OF alias

This is better than storing -ENODEV in the id number. This fixes SoCs
with only one IPU that don't specify an IPU alias in the device tree.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-common.c