summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-fsl-dspi.c
diff options
context:
space:
mode:
authorHaikun Wang <haikun.wang@freescale.com>2015-04-24 12:54:47 +0200
committerMark Brown <broonie@kernel.org>2015-04-24 13:32:38 +0200
commitd2233325e5b7891914901867ca5355347d59df14 (patch)
tree4b038d879144fd895d44ea890d97c8456300e41d /drivers/spi/spi-fsl-dspi.c
parentLinux 4.0-rc1 (diff)
downloadlinux-d2233325e5b7891914901867ca5355347d59df14.tar.xz
linux-d2233325e5b7891914901867ca5355347d59df14.zip
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>
Diffstat (limited to 'drivers/spi/spi-fsl-dspi.c')
-rw-r--r--drivers/spi/spi-fsl-dspi.c2
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",