diff mbox

[v1] spi: spi-fsl-dspi: remove clk reference when regmap_mmio initialize

Message ID 1429872887-14438-1-git-send-email-haikun.wang@freescale.com (mailing list archive)
State Accepted
Commit d2233325e5b7891914901867ca5355347d59df14
Headers show

Commit Message

haikun wang April 24, 2015, 10:54 a.m. UTC
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>
---
 drivers/spi/spi-fsl-dspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown April 24, 2015, 11:32 a.m. UTC | #1
On Fri, Apr 24, 2015 at 06:54:47PM +0800, Haikun Wang wrote:
> It is unnecessary for DSPI to enable/disable clk when access DSPI register.
> And it will reduce efficiency.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c
index 5fe54cd..ed0475d 100644
--- a/drivers/spi/spi-fsl-dspi.c
+++ b/drivers/spi/spi-fsl-dspi.c
@@ -566,7 +566,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",