diff options
| author | 2022-08-27 13:42:29 +0200 | |
|---|---|---|
| committer | 2022-08-29 17:51:38 +0100 | |
| commit | 30b31b29a866d32fc381b406d4c4f5db2636e5ec (patch) | |
| tree | ad9ead9d03a31701908146807642aed273611d02 /tools/testing/selftests/exec/git:/ssh:/git@git.zx2c4.com | |
| parent | spi: mt7621: Use the devm_clk_get_enabled() helper to simplify error handling (diff) | |
| download | linux-dev-30b31b29a866d32fc381b406d4c4f5db2636e5ec.tar.xz linux-dev-30b31b29a866d32fc381b406d4c4f5db2636e5ec.zip | |
spi: mt7621: Use devm_spi_register_controller()
Now that clk_disable_unprepare(clk) is handled with a managed resource,
we can use devm_spi_register_controller() and axe the .remove function.
The order between spi_unregister_controller() and clk_disable_unprepare()
is still the same.
(see commit 46b5c4fb87ce ("spi: mt7621: Don't leak SPI master in probe
error path") to see why it matters)
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/b7698e198acc998d99e7e7c895a2910f14f89443.1661599671.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/testing/selftests/exec/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
