spi: spi-fsl-dspi: remove clk reference when regmap_mmio initialize
authorHaikun Wang <haikun.wang@freescale.com>
Fri, 24 Apr 2015 10:54:47 +0000 (18:54 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 24 Apr 2015 11:32:38 +0000 (12:32 +0100)
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>
drivers/spi/spi-fsl-dspi.c

index d1a39249704a7e3a16bcd861bc7f16f5a9ed02dd..1ccbd4e427897e8c127dd1cd978d8cf9ee596826 100644 (file)
@@ -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",