Andy Shevchenko 36124dea16
spi: Remove code duplication in spi_add_device*()
The commit 0c79378c0199 ("spi: add ancillary device support")
added a dozen of duplicating lines of code. We may move them
to the __spi_add_device(). Note, that the code may be called
under the mutex.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20230714091748.89681-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-07-14 14:44:36 +01:00
..
2023-07-03 13:04:53 +01:00
2023-06-23 11:04:20 +01:00
2023-06-28 13:48:42 -07:00
2023-06-28 13:48:42 -07:00
2023-07-06 19:24:11 -07:00
2023-06-28 13:48:42 -07:00