spi: spi-fsl-dspi: Fix copy-paste error in dspi_probe
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/spi/spi-fsl-dspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-fsl-dspi.c +1 -1
@@ -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; } }
Signature · 1 line
2.7.4
Quoted 15 lines · Gustavo A. R. Silva
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 <[email protected]>--- drivers/spi/spi-fsl-dspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/spi/spi-fsl-dspi.c +0
-0
drivers/spi/spi-fsl-dspi.c static int dspi_probe(struct platform_device *pdev) · line 1072
Quoted 8 lines
drivers/spi/spi-fsl-dspi.c +1
-1@@ -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; } }
Acked-by Esben Haabendal <[email protected]>