Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Jonas Gorski and committed by
Mark Brown
dea5de1b b1bdd4f8

+3 -1
+3 -1
drivers/spi/spi-bcm63xx-hsspi.c
··· 351 351 if (!rate) 352 352 return -EINVAL; 353 353 354 - clk_prepare_enable(clk); 354 + ret = clk_prepare_enable(clk); 355 + if (ret) 356 + return ret; 355 357 356 358 master = spi_alloc_master(&pdev->dev, sizeof(*bs)); 357 359 if (!master) {