Commit 80dc12cd authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Mark Brown

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: 58ba07ec ("spi: spi-fsl-dspi: Add support for XSPI mode registers")
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: default avatarEsben Haabendal <eha@deif.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3e7cc625
...@@ -1066,7 +1066,7 @@ static int dspi_probe(struct platform_device *pdev) ...@@ -1066,7 +1066,7 @@ static int dspi_probe(struct platform_device *pdev)
dev_err(&pdev->dev, dev_err(&pdev->dev,
"failed to init pushr regmap: %ld\n", "failed to init pushr regmap: %ld\n",
PTR_ERR(dspi->regmap_pushr)); PTR_ERR(dspi->regmap_pushr));
ret = PTR_ERR(dspi->regmap); ret = PTR_ERR(dspi->regmap_pushr);
goto out_master_put; goto out_master_put;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment