diff options
-rw-r--r-- | drivers/spi/spi-bcm63xx-hsspi.c | 4 |
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) | |||
351 | if (!rate) | 351 | if (!rate) |
352 | return -EINVAL; | 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 | master = spi_alloc_master(&pdev->dev, sizeof(*bs)); | 358 | master = spi_alloc_master(&pdev->dev, sizeof(*bs)); |
357 | if (!master) { | 359 | if (!master) { |