Skip to content

Commit 80dc12c

Browse files
GustavoARSilvabroonie
authored andcommitted
spi: spi-fsl-dspi: Fix copy-paste error in dspi_probe
It seems that the proper structure field to use in this particular case is *regmap_pushr* instead of regmap. Addresses-Coverity-ID: 1470126 ("Copy-paste error") Fixes: 58ba07e ("spi: spi-fsl-dspi: Add support for XSPI mode registers") Signed-off-by: Gustavo A. R. Silva <[email protected]> Acked-by: Esben Haabendal <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 3e7cc62 commit 80dc12c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-fsl-dspi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ static int dspi_probe(struct platform_device *pdev)
10661066
dev_err(&pdev->dev,
10671067
"failed to init pushr regmap: %ld\n",
10681068
PTR_ERR(dspi->regmap_pushr));
1069-
ret = PTR_ERR(dspi->regmap);
1069+
ret = PTR_ERR(dspi->regmap_pushr);
10701070
goto out_master_put;
10711071
}
10721072
}

0 commit comments

Comments
 (0)