Skip to content

Commit

Permalink
spi: spi-fsl-dspi: Fix copy-paste error in dspi_probe
Browse files Browse the repository at this point in the history
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: 58ba07e ("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>
  • Loading branch information
GustavoARSilva authored and broonie committed Jun 21, 2018
1 parent 3e7cc62 commit 80dc12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-fsl-dspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 80dc12c

Please sign in to comment.