CreatorDev / linux-old

Linux kernel sources for Ci40 port
Other
1 stars 7 forks source link

spi: img-spfi: Remove spi_master_put in img_spfi_remove() #20

Closed ghost closed 7 years ago

ghost commented 7 years ago

This connects to CreatorDev/openwrt#238.

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

This is detected by Coccinelle semantic patch.

Signed-off-by: Wei Yongjun weiyj.lk@gmail.com Signed-off-by: Mark Brown broonie@kernel.org

ghost commented 7 years ago

Now part of https://github.com/CreatorDev/linux/pull/25.