summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-dw-mid.c
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2020-05-04 14:12:04 +0300
committerMark Brown <broonie@kernel.org>2020-05-04 19:18:48 +0300
commit7b9c94bd13cc9dc9c0c4932ebacf756ae612d52a (patch)
treeacc416a8a3680e6f59ee7603e1c26c8cdaef9d87 /drivers/spi/spi-dw-mid.c
parent4332ea8f40c80d51a534f194291bf3b7738a7beb (diff)
downloadlinux-7b9c94bd13cc9dc9c0c4932ebacf756ae612d52a.tar.xz
spi: amd: Fix refcount underflow on remove
The AMD SPI driver calls spi_master_put() in its ->remove() hook even though the preceding call to spi_unregister_master() already drops a ref, thus leading to a refcount underflow. Drop the superfluous call to spi_master_put(). This only leaves the call to spi_unregister_master() in the ->remove() hook, so it's safe to change the ->probe() hook to use the devm version of spi_register_master() and drop the ->remove() hook altogether. Signed-off-by: Lukas Wunner <lukas@wunner.de> Link: https://lore.kernel.org/r/5e53ccdf1eecd4e015dba99d0d77389107f8a2e3.1588590210.git.lukas@wunner.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-dw-mid.c')
0 files changed, 0 insertions, 0 deletions