Commit dea5de1b authored by Jonas Gorski's avatar Jonas Gorski Committed by Mark Brown

spi/bcm63xx-hsspi: check result of clk_prepare_enable

Ensure we notice if the clock cannot be enabled for any reason and pass
the error down.
Signed-off-by: default avatarJonas Gorski <jogo@openwrt.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent b1bdd4f8
...@@ -351,7 +351,9 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev) ...@@ -351,7 +351,9 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev)
if (!rate) if (!rate)
return -EINVAL; return -EINVAL;
clk_prepare_enable(clk); ret = clk_prepare_enable(clk);
if (ret)
return ret;
master = spi_alloc_master(&pdev->dev, sizeof(*bs)); master = spi_alloc_master(&pdev->dev, sizeof(*bs));
if (!master) { if (!master) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment