projects
/
openwrt
/
staging
/
aparcar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fbadd6
)
ar71xx: spi-rb4xx fix.
author
Sergey Sergeev
<adron@yapic.net>
Thu, 30 Jun 2016 10:23:15 +0000
(13:23 +0300)
committer
John Crispin
<john@phrozen.org>
Sat, 2 Jul 2016 08:16:17 +0000
(10:16 +0200)
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>
target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c
patch
|
blob
|
history
diff --git
a/target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c
b/target/linux/ar71xx/files/drivers/spi/spi-rb4xx.c
index 56260ffc92190c8a16455f3c0e4f221d77c3473f..357fd4170838a7aa0457e9cd5210eefb9c848453 100644
(file)
--- 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;