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>
This commit is contained in:
parent
73ed516abc
commit
31b980c069
@ -2798,6 +2798,7 @@ err_free_mutex:
|
||||
cancel_delayed_work(&state->delayed_work_enable_hpd);
|
||||
mutex_destroy(&state->page_lock);
|
||||
mutex_destroy(&state->lock);
|
||||
tda1997x_set_power(state, 0);
|
||||
err_free_state:
|
||||
kfree(state);
|
||||
dev_err(&client->dev, "%s failed: %d\n", __func__, ret);
|
||||
|
Loading…
Reference in New Issue
Block a user