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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2018 20:43:39 +0000 (22:43 +0200)
commit8e6ee30ad80f8a7acb371a0ce3599c435dcc9a15
tree3fbc0c3b56df07343287e5f9e5acbc2c898e8e38
parent3b9909896570390b8f3c35e7261fcfa0ce5abe54
gpu: ipu-v3: default to id 0 on missing OF alias

[ Upstream commit 2d87e6c1b99c402360fdfe19ce4f579ab2f96adf ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/ipu-v3/ipu-common.c