spi: axi-spi-engine: use devm action to reset hw on remove
authorDavid Lechner <dlechner@baylibre.com>
Fri, 17 Nov 2023 20:12:56 +0000 (14:12 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 20 Nov 2023 13:29:07 +0000 (13:29 +0000)
commite094de13ae78035c5642d5dfc65b07301765eebc
treeeed5b749fa2979188fd77149fa26d1a8488a786e
parente12cd96e8e93044646fdf4b2c9a1de62cfa01e7c
spi: axi-spi-engine: use devm action to reset hw on remove

This moves the reset of the hardware to a devm action in the AXI SPI
Engine driver. This will allow us to use devm on later calls in the
probe function while preserving the order during cleanup.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20231117-axi-spi-engine-series-1-v1-5-cc59db999b87@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-axi-spi-engine.c