spi: Use device_find_any_child() instead of custom approach
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 10 Jun 2022 12:02:19 +0000 (15:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 14:01:55 +0000 (16:01 +0200)
commitc21b0837983d3b00c4f73927dae8441bf478087f
tree40a2a7ecb942e52c06068d46dbee1c266a3cf1df
parent82b070beae1ef55b0049768c8dc91d87565bb191
spi: Use device_find_any_child() instead of custom approach

We have already a helper to get the first child device, use it and
drop custom approach.

Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220610120219.18988-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi.c