diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-06-21 16:22:09 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-06-21 18:30:22 +0300 |
commit | 80dc12cdfb9e8966da4f02d6d7accf2cb691caf2 (patch) | |
tree | adceb746b2a9f33458fe03a8eb523f722b8f509a /drivers/spi | |
parent | 3e7cc6252dc81100bd2803b3148a1e59b3dfae6a (diff) | |
download | linux-80dc12cdfb9e8966da4f02d6d7accf2cb691caf2.tar.xz |
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: 58ba07ec79e6 ("spi: spi-fsl-dspi: Add support for XSPI mode registers")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Esben Haabendal <eha@deif.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-fsl-dspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 1f85dcdb2203..ff7456be9d6d 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -1066,7 +1066,7 @@ static int dspi_probe(struct platform_device *pdev) dev_err(&pdev->dev, "failed to init pushr regmap: %ld\n", PTR_ERR(dspi->regmap_pushr)); - ret = PTR_ERR(dspi->regmap); + ret = PTR_ERR(dspi->regmap_pushr); goto out_master_put; } } |