Skip to content
Unverified Commit 049e5fea authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown
Browse files

spi: sifive: Remove spi_master_put in sifive_spi_remove()



The call to spi_master_put() in sifive_spi_remove() is redundant since
the master is registered using devm_spi_register_master() and no
reference hold by using spi_master_get() in sifive_spi_remove().

This is detected by Coccinelle semantic patch.

Fixes: 484a9a68 ("spi: sifive: Add driver for the SiFive SPI controller")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent bf9f742c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment