spi: Kill spi_add_device_locked()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 14 Jul 2023 09:17:46 +0000 (12:17 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 14 Jul 2023 13:44:37 +0000 (14:44 +0100)
commit7b5c6a545b3491fb785c75cee60e6b0c35a4de1b
tree83bea9982becf7b3503dd9584d9a8b351d993e31
parent36124dea164cf684869e856b2ada23e8adab5f03
spi: Kill spi_add_device_locked()

Now, spi_add_device_locked() has just a line on top of __spi_add_device().
Besides that, it has a single caller. So, just kill it and embed its parts
into the caller.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230714091748.89681-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c