clk_prepare_enable() may fail, so let's check its return value and propagate it
in the case of error.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
dev_err(&pdev->dev, "could not get clock: %d\n", ret);
goto error_irqmap;
}
- clk_prepare_enable(ssi_private->clk);
+ ret = clk_prepare_enable(ssi_private->clk);
+ if (ret) {
+ dev_err(&pdev->dev, "clk_prepare_enable failed: %d\n",
+ ret);
+ goto error_irqmap;
+ }
/*
* We have burstsize be "fifo_depth - 2" to match the SSI