]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pic32-sqi: remove unnecessary of_node_get()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 14 Sep 2018 20:05:34 +0000 (23:05 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 17 Sep 2018 17:54:08 +0000 (10:54 -0700)
commit405cec028b6df12ebe8bf9cc4d3ec548d1b2cf09
tree56f23c56ec13b29619b97a5132f18c446eb85379
parent35854a33b09f98a60aacd12eec138bf6de8f1fa8
spi: pic32-sqi: remove unnecessary of_node_get()

Almost all spi drivers assign spi master->dev.of_node from
its parent platform device without additional refcounting.
It seems of_node_get() in pic32_sqi_probe() is unnecessary
and there is no corresponding of_node_put().

Found by Linux Driver Verification project (linuxtesting.org)

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pic32-sqi.c