media: davinci: vpif: fix unbalanced runtime PM enable
authorJohan Hovold <johan@kernel.org>
Wed, 22 Dec 2021 14:20:23 +0000 (15:20 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 23 Jan 2022 20:18:42 +0000 (21:18 +0100)
commitd42b3ad105b5d3481f6a56bc789aa2b27aa09325
treed951411d0885045d4b4827b333f3c4ae65bd192f
parent4a321de239213300a714fa0353a5f1272d381a44
media: davinci: vpif: fix unbalanced runtime PM enable

Make sure to disable runtime PM before returning on probe errors.

Fixes: 479f7a118105 ("[media] davinci: vpif: adaptions for DT support")
Cc: stable@vger.kernel.org
Cc: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/davinci/vpif.c