From: Sergey Sergeev Date: Thu, 30 Jun 2016 10:23:15 +0000 (+0300) Subject: ar71xx: spi-rb4xx fix. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c312cef223dd;p=openwrt%2Fstaging%2Fkaloz.git 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 --- 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;