aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Sergeev <adron@yapic.net>2016-06-30 13:23:15 +0300
committerJohn Crispin <john@phrozen.org>2016-07-02 10:16:17 +0200
commitc312cef223ddc164b8d3fd3a195eb88a43ede901 (patch)
tree4bf8b3c7b650fae7a50fa64e83cd03a6c6e491ab
parent3fbadd624a02c96081d874207a3e225c5647e306 (diff)
downloadupstream-c312cef223ddc164b8d3fd3a195eb88a43ede901.tar.gz
upstream-c312cef223ddc164b8d3fd3a195eb88a43ede901.tar.bz2
upstream-c312cef223ddc164b8d3fd3a195eb88a43ede901.zip
ar71xx: spi-rb4xx fix.
In new kernels we should use clk_prepare_enable instead of clk_enable since clk_enable does not make proper initialization that leads to rise WARN_ON messages and not working spi bus on the device. Signed-off-by: Sergey Sergeev <adron@yapic.net>
-rw-r--r--target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c b/target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c
index 56260ffc92..357fd41708 100644
--- a/target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c
+++ b/target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c
@@ -413,7 +413,7 @@ static int rb4xx_spi_probe(struct platform_device *pdev)
goto err_put_master;
}
- err = clk_enable(rbspi->ahb_clk);
+ err = clk_prepare_enable(rbspi->ahb_clk);
if (err)
goto err_clk_put;