]> git.baikalelectronics.ru Git - kernel.git/commit
spi: sifive: Remove spi_master_put in sifive_spi_remove()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 22 Feb 2019 05:46:16 +0000 (05:46 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 22 Feb 2019 15:17:43 +0000 (15:17 +0000)
commit034e4c0d0caed6330487eb997b9fad67b15f617b
tree30f4a47552d4067ac64de14406598f40ec69a4a3
parentcade8fb4b6e10f094d6402d9cf8c7f53ed48ea46
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: 47896ee2d30a ("spi: sifive: Add driver for the SiFive SPI controller")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sifive.c