Files
Uday Khare 3238c63472 ASoC: tas2562: fix deprecated 'shut-down' GPIO always cleared after lookup
In tas2562_parse_dt(), the fallback lookup for the deprecated
"shut-down" GPIO property is broken due to a missing pair of braces.

The code intends to reset sdz_gpio to NULL only when the lookup
returns an error that is not -EPROBE_DEFER (so the driver gracefully
continues without a GPIO). However, without braces the statement:

    tas2562->sdz_gpio = NULL;

falls outside the IS_ERR() check and is executed unconditionally
for every path through the if block, including a successful GPIO
lookup.

This means any device using the deprecated 'shut-down' DT property
will always have sdz_gpio == NULL after probe, making the GPIO
completely non-functional.

Fix this by adding the missing braces to scope the NULL assignment
inside the IS_ERR() branch, matching the pattern already used for
the primary 'shutdown' GPIO lookup above.

Fixes: f78a97003b ("ASoC: tas2562: Update shutdown GPIO property")
Signed-off-by: Uday Khare <udaykhare77@gmail.com>
Link: https://patch.msgid.link/20260706153109.10953-1-udaykhare77@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2026-07-09 00:33:20 +01:00
..
2025-04-13 20:22:14 +01:00
2026-06-12 18:57:52 +01:00
2024-08-26 15:52:09 +01:00
2023-12-01 16:59:23 +00:00
2024-10-24 16:09:18 +01:00
2026-02-22 23:52:20 +00:00
2026-06-12 18:57:52 +01:00
2025-05-23 11:16:45 +01:00
2024-09-05 12:31:03 +01:00
2026-03-27 18:37:54 +00:00
2024-03-28 15:54:04 +00:00
2024-10-17 12:11:33 +01:00
2024-10-17 12:11:33 +01:00
2024-10-17 12:11:33 +01:00
2024-10-17 12:11:33 +01:00
2024-12-16 15:12:49 +00:00
2022-10-13 13:01:32 +01:00
2025-08-12 12:06:03 +01:00