diff options
-rw-r--r-- | drivers/spi/spi-fsl-dspi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 448216025ce8..12dc99546394 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c | |||
@@ -438,7 +438,7 @@ static int dspi_resume(struct device *dev) | |||
438 | 438 | ||
439 | static SIMPLE_DEV_PM_OPS(dspi_pm, dspi_suspend, dspi_resume); | 439 | static SIMPLE_DEV_PM_OPS(dspi_pm, dspi_suspend, dspi_resume); |
440 | 440 | ||
441 | static struct regmap_config dspi_regmap_config = { | 441 | static const struct regmap_config dspi_regmap_config = { |
442 | .reg_bits = 32, | 442 | .reg_bits = 32, |
443 | .val_bits = 32, | 443 | .val_bits = 32, |
444 | .reg_stride = 4, | 444 | .reg_stride = 4, |
@@ -492,7 +492,6 @@ static int dspi_probe(struct platform_device *pdev) | |||
492 | goto out_master_put; | 492 | goto out_master_put; |
493 | } | 493 | } |
494 | 494 | ||
495 | dspi_regmap_config.lock_arg = dspi; | ||
496 | dspi->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "dspi", base, | 495 | dspi->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "dspi", base, |
497 | &dspi_regmap_config); | 496 | &dspi_regmap_config); |
498 | if (IS_ERR(dspi->regmap)) { | 497 | if (IS_ERR(dspi->regmap)) { |