mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
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: 58ba07ec79
("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>
This commit is contained in:
parent
3e7cc6252d
commit
80dc12cdfb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue