Message ID | 1429872887-14438-1-git-send-email-haikun.wang@freescale.com (mailing list archive) |
---|---|
State | Accepted |
Commit | d2233325e5b7891914901867ca5355347d59df14 |
Headers | show |
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 --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",
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(-)