From: Haikun Wang Date: Fri, 24 Apr 2015 10:54:47 +0000 (+0800) Subject: spi: spi-fsl-dspi: remove clk reference when regmap_mmio initialize X-Git-Tag: firefly_0821_release~176^2~1599^2~2^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d2233325e5b7891914901867ca5355347d59df14;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Mark Brown --- 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",