summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-10-07 15:51:58 +0200
committerMark Brown <broonie@linaro.org>2013-10-07 15:51:58 +0200
commitb242954b3cb8cb710a5c72fdd509f659748f6973 (patch)
tree5bec3b43824e574311a0eafb7bf8910a2d440178 /drivers/spi
parentMerge remote-tracking branch 'spi/fix/hspi' into spi-linus (diff)
parentspi: mpc512x: fix error return code in mpc512x_psc_spi_do_probe() (diff)
downloadlinux-b242954b3cb8cb710a5c72fdd509f659748f6973.tar.xz
linux-b242954b3cb8cb710a5c72fdd509f659748f6973.zip
Merge remote-tracking branch 'spi/fix/mpc512x' into spi-linus
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-mpc512x-psc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spi-mpc512x-psc.c b/drivers/spi/spi-mpc512x-psc.c
index dbc5e999a1f5..6adf4e35816d 100644
--- a/drivers/spi/spi-mpc512x-psc.c
+++ b/drivers/spi/spi-mpc512x-psc.c
@@ -522,8 +522,10 @@ static int mpc512x_psc_spi_do_probe(struct device *dev, u32 regaddr,
psc_num = master->bus_num;
snprintf(clk_name, sizeof(clk_name), "psc%d_mclk", psc_num);
clk = devm_clk_get(dev, clk_name);
- if (IS_ERR(clk))
+ if (IS_ERR(clk)) {
+ ret = PTR_ERR(clk);
goto free_irq;
+ }
ret = clk_prepare_enable(clk);
if (ret)
goto free_irq;