summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-pic32-sqi.c
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2018-09-14 23:05:34 +0300
committerMark Brown <broonie@kernel.org>2018-09-17 10:54:08 -0700
commit3356d9f4cb45b1aef3dd4b1a6ea9ceaca0f68a53 (patch)
tree56f23c56ec13b29619b97a5132f18c446eb85379 /drivers/spi/spi-pic32-sqi.c
parent37a1aa88f98d688a5d9119fbdd1086ae4f171d1d (diff)
downloadlinux-3356d9f4cb45b1aef3dd4b1a6ea9ceaca0f68a53.tar.bz2
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>
Diffstat (limited to 'drivers/spi/spi-pic32-sqi.c')
-rw-r--r--drivers/spi/spi-pic32-sqi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-pic32-sqi.c b/drivers/spi/spi-pic32-sqi.c
index bd1c6b53283f..62e6bf1f50b1 100644
--- a/drivers/spi/spi-pic32-sqi.c
+++ b/drivers/spi/spi-pic32-sqi.c
@@ -656,7 +656,7 @@ static int pic32_sqi_probe(struct platform_device *pdev)
master->max_speed_hz = clk_get_rate(sqi->base_clk);
master->dma_alignment = 32;
master->max_dma_len = PESQI_BD_BUF_LEN_MAX;
- master->dev.of_node = of_node_get(pdev->dev.of_node);
+ master->dev.of_node = pdev->dev.of_node;
master->mode_bits = SPI_MODE_3 | SPI_MODE_0 | SPI_TX_DUAL |
SPI_RX_DUAL | SPI_TX_QUAD | SPI_RX_QUAD;
master->flags = SPI_MASTER_HALF_DUPLEX;