ar71xx: spi-rb4xx fix.
authorSergey Sergeev <adron@yapic.net>
Thu, 30 Jun 2016 10:23:15 +0000 (13:23 +0300)
committerJohn 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

index 56260ffc92190c8a16455f3c0e4f221d77c3473f..357fd4170838a7aa0457e9cd5210eefb9c848453 100644 (file)
@@ -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;