spi: fix resource leaks on device setup failure

Johan Hovold <johan@kernel.org> says:

Make sure to call controller cleanup() if spi_setup() fails while
registering a device to avoid leaking any resources allocated by
setup().
This commit is contained in:
Mark Brown 2026-04-22 15:10:22 +01:00
commit 16ab65df5d
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
2 changed files with 38 additions and 25 deletions