summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorRichard Fitzgerald <rf@opensource.cirrus.com>2025-07-03 13:25:21 +0300
committerMark Brown <broonie@kernel.org>2025-07-03 14:22:27 +0300
commit3b3312f28ee2d9c386602f8521e419cfc69f4823 (patch)
tree65ee9398dea01fc10b1539df199896ed32274624 /net/lapb/lapb_timer.c
parentf7690d058170dbc1520b0bfbc3d9daf046b59326 (diff)
downloadlinux-3b3312f28ee2d9c386602f8521e419cfc69f4823.tar.xz
ASoC: cs35l56: probe() should fail if the device ID is not recognized
Return an error from driver probe if the DEVID read from the chip is not one supported by this driver. In cs35l56_hw_init() there is a check for valid DEVID, but the invalid case was returning the value of ret. At this point in the code ret == 0 so the caller would think that cs35l56_hw_init() was successful. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Fixes: 84851aa055c8 ("ASoC: cs35l56: Move part of cs35l56_init() to shared library") Link: https://patch.msgid.link/20250703102521.54204-1-rf@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions