Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -351,7 +351,9 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev)
	if (!rate)
		return -EINVAL;

	clk_prepare_enable(clk);
	ret = clk_prepare_enable(clk);
	if (ret)
		return ret;

	master = spi_alloc_master(&pdev->dev, sizeof(*bs));
	if (!master) {