ARM: layerscape: ppa: fix error propagation in ppa_init()
On fit_open_image, we returned PTR_ERR(fit) instead of the correct ret.
We also didn't call fit_close as we should. Fix this.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 5e57f52 commit 4faadaaf6b62a0f6ab1eb85c372fa3e284ae7bac
@Ahmad Fatoum Ahmad Fatoum authored on 6 Jul 2020
Sascha Hauer committed on 14 Jul 2020
Showing 1 changed file
View
arch/arm/mach-layerscape/ppa.c