[source] ar71xx: spi-rb4xx fix.
LEDE Commits
lede-commits at lists.infradead.org
Sat Jul 2 07:14:55 PDT 2016
blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=c312cef223ddc164b8d3fd3a195eb88a43ede901
commit c312cef223ddc164b8d3fd3a195eb88a43ede901
Author: Sergey Sergeev <adron at yapic.net>
AuthorDate: Thu Jun 30 13:23:15 2016 +0300
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 at yapic.net>
---
target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c b/target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c
index 56260ff..357fd41 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;
More information about the lede-commits
mailing list