diff options
author | Haikun Wang <haikun.wang@freescale.com> | 2015-04-24 13:54:47 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-04-24 14:32:38 +0300 |
commit | d2233325e5b7891914901867ca5355347d59df14 (patch) | |
tree | 4b038d879144fd895d44ea890d97c8456300e41d | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) | |
download | linux-d2233325e5b7891914901867ca5355347d59df14.tar.xz |
spi: spi-fsl-dspi: remove clk reference when regmap_mmio initialize
It is unnecessary for DSPI to enable/disable clk when access DSPI register.
And it will reduce efficiency.
Signed-off-by: Haikun Wang <haikun.wang@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-fsl-dspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index d1a39249704a..1ccbd4e42789 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -501,7 +501,7 @@ static int dspi_probe(struct platform_device *pdev) goto out_master_put; } - dspi->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "dspi", base, + dspi->regmap = devm_regmap_init_mmio_clk(&pdev->dev, NULL, base, &dspi_regmap_config); if (IS_ERR(dspi->regmap)) { dev_err(&pdev->dev, "failed to init regmap: %ld\n", |