]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: Simplify devm_spi_*_controller()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 8 Jan 2026 17:51:45 +0000 (18:51 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 8 Jan 2026 20:06:31 +0000 (20:06 +0000)
commitb6376dbed8e173f9571583b5d358b08ff394e864
tree5e36ea9374e00d1699684cfda0ab3d073414b2f9
parent19a4505a7a5d4eea70f1a42d601c25d730922fdf
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>
drivers/spi/spi.c