diff options
author | Jonas Gorski <jogo@openwrt.org> | 2013-03-11 19:13:37 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-12 15:11:31 -0400 |
commit | b435ff212e91bddc2d12e6638a4d846d5f60daa6 (patch) | |
tree | a03234aebe1215fac562d1b828343dfbb8677eec /drivers/spi/spi-bcm63xx.c | |
parent | 4a25b680b1e84cf97c740c8005e2c6655d6cfa7f (diff) |
spi/bcm63xx: don't disable non enabled clocks in probe error path
When msg_ctl_width is set to an invalid value we try to disable the
clock despite it never being enabled. Fix it by jumping to the correct
label.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-bcm63xx.c')
-rw-r--r-- | drivers/spi/spi-bcm63xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index 0415a32cce33..d7df435d962e 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c | |||
@@ -489,7 +489,7 @@ static int bcm63xx_spi_probe(struct platform_device *pdev) | |||
489 | default: | 489 | default: |
490 | dev_err(dev, "unsupported MSG_CTL width: %d\n", | 490 | dev_err(dev, "unsupported MSG_CTL width: %d\n", |
491 | bs->msg_ctl_width); | 491 | bs->msg_ctl_width); |
492 | goto out_clk_disable; | 492 | goto out_err; |
493 | } | 493 | } |
494 | 494 | ||
495 | /* Initialize hardware */ | 495 | /* Initialize hardware */ |