projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c517d83
)
spi: spi-fsl-dspi: remove clk reference when regmap_mmio initialize
author
Haikun Wang
<haikun.wang@freescale.com>
Fri, 24 Apr 2015 10:54:47 +0000
(18:54 +0800)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-fsl-dspi.c
b/drivers/spi/spi-fsl-dspi.c
index d1a39249704a7e3a16bcd861bc7f16f5a9ed02dd..1ccbd4e427897e8c127dd1cd978d8cf9ee596826 100644
(file)
--- 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",