summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-bcm63xx-hsspi.c
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-12-18 00:44:46 +0400
committerMark Brown <broonie@linaro.org>2013-12-18 02:32:17 +0400
commitdea5de1b37c08bc8a028b6a53145b7594ba6eb31 (patch)
tree5b95060a272071817944c2b6041daefdb144c02d /drivers/spi/spi-bcm63xx-hsspi.c
parentb1bdd4f883e1938a1921f300d7f164ce583b1a64 (diff)
downloadlinux-dea5de1b37c08bc8a028b6a53145b7594ba6eb31.tar.xz
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>
Diffstat (limited to 'drivers/spi/spi-bcm63xx-hsspi.c')
-rw-r--r--drivers/spi/spi-bcm63xx-hsspi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c
index 6a763a8a8a5e..949dfb57fe89 100644
--- a/drivers/spi/spi-bcm63xx-hsspi.c
+++ b/drivers/spi/spi-bcm63xx-hsspi.c
@@ -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) {