summaryrefslogtreecommitdiff
path: root/block/bsg-lib.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-05-29 08:31:53 +0200
committerMark Brown <broonie@kernel.org>2022-06-06 12:39:16 +0100
commit8e3ca32f46994e74b7f43c57731150b2aedb2630 (patch)
tree32dfeac71b0ee03e229d61ea099cc2e566c76900 /block/bsg-lib.c
parentf2906aa863381afb0015a9eb7fefad885d4e5a56 (diff)
downloadlwn-8e3ca32f46994e74b7f43c57731150b2aedb2630.tar.gz
lwn-8e3ca32f46994e74b7f43c57731150b2aedb2630.zip
spi: spi-altera-dfl: Fix an error handling path
The spi_alloc_master() call is not undone in all error handling paths. Moreover, there is no .remove function to release the allocated memory. In order to fix both this issues, switch to devm_spi_alloc_master(). This allows further simplification of the probe. Fixes: ba2fc167e944 ("spi: altera: Add DFL bus driver for Altera API Controller") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/0607bb59f4073f86abe5c585d35245aef0b045c6.1653805901.git.christophe.jaillet@wanadoo.fr Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'block/bsg-lib.c')
0 files changed, 0 insertions, 0 deletions