drm/tegra: dc: Use correct format array for Tegra124
authorStefan Agner <stefan@agner.ch>
Tue, 20 Mar 2018 09:11:44 +0000 (10:11 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 22 Mar 2018 14:28:09 +0000 (15:28 +0100)
commit9a02d3af9ce9fcca751da1d4b5663b7a825d5957
tree09b94e3aee5fb2b00c1d60a7495a04dcabff1f74
parent192b4af6cd28cdad9b42fd79c21a90a2aeb0bec7
drm/tegra: dc: Use correct format array for Tegra124

Use tegra124_(primary|overlay)_formats for Tegra124, otherwise the count
specified in the Tegra124 SoC info structure will be different from the
array size and cause a crash.

Fixes: 511c7023cf23 ("drm/tegra: dc: Support more formats")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c