aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/microchip-spi.c
diff options
context:
space:
mode:
authorRichard Fitzgerald <[email protected]>2025-07-03 10:25:21 +0000
committerMark Brown <[email protected]>2025-07-03 11:22:27 +0000
commit3b3312f28ee2d9c386602f8521e419cfc69f4823 (patch)
tree65ee9398dea01fc10b1539df199896ed32274624 /drivers/fpga/microchip-spi.c
parentASoC: Intel: sof_sdw: Add quirks for Lenovo P1 and P16 (diff)
downloadkernel-3b3312f28ee2d9c386602f8521e419cfc69f4823.tar.gz
kernel-3b3312f28ee2d9c386602f8521e419cfc69f4823.zip
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 <[email protected]> Fixes: 84851aa055c8 ("ASoC: cs35l56: Move part of cs35l56_init() to shared library") Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/microchip-spi.c')
0 files changed, 0 insertions, 0 deletions