mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-27 08:05:27 +08: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
@ -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 New Issue
Block a user