]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pic32: remove unnecessary of_node_get()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 6 Sep 2018 22:16:54 +0000 (01:16 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 7 Sep 2018 16:04:51 +0000 (17:04 +0100)
commit29ce429b3937c97f107619e5a29a01e2c21cf9e8
tree7d83a32c9d56c8804da8918e91bcdda63b54fda5
parent930563b1b5cafb139be813063c011d56889b93dd
spi: pic32: 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_spi_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.c