media: TDA1997x: Fix the error handling in tda1997x_probe()
authorZheyu Ma <zheyuma97@gmail.com>
Tue, 10 May 2022 13:41:46 +0000 (14:41 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Jun 2022 09:30:30 +0000 (10:30 +0100)
commit31b980c06900796070cbbe036483aca4acbdc04f
tree2e9c7f8247469bf71669a3b10915e3ffa60087a3
parent73ed516abc4e901f4450ff08fe05b3db06227318
media: TDA1997x: Fix the error handling in tda1997x_probe()

The driver should disable the regulator when failing to probe.

Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Acked-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/tda1997x.c