spi: Simplify devm_spi_*_controller()

Use devm_add_action_or_reset() instead of devres_alloc() and
devres_add(), which works the same. This will simplify the
code. There is no functional changes.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260108175145.3535441-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Andy Shevchenko 2026-01-08 18:51:45 +01:00 • committed by Mark Brown
commit b6376dbed8
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0