ANDROID: GKI: fix up build break where timer_delete_sync() was used

We reverted the commit that renamed del_timer_sync() to
timer_delete_sync() a long while back, but that breaks the build when
new users of the call get merged into LTS releases.  Fix the tc358743
driver by using the "old" name of the function.

Fixes: 9205fb6e61 ("media: i2c: tc358743: Fix use-after-free bugs caused by orphan timer in probe")
Change-Id: I56b1a69965937b3187978d0ae04d8c483916290f
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman 2025-10-23 07:54:43 +00:00
commit 6c4d697461

View file

@ -2200,7 +2200,7 @@ static int tc358743_probe(struct i2c_client *client)
err_work_queues:
cec_unregister_adapter(state->cec_adap);
if (!state->i2c_client->irq) {
timer_delete_sync(&state->timer);
del_timer_sync(&state->timer);
flush_work(&state->work_i2c_poll);
}
cancel_delayed_work_sync(&state->delayed_work_enable_hotplug);