forked from Minki/linux
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>
This commit is contained in:
parent
4a25b680b1
commit
b435ff212e
@ -489,7 +489,7 @@ static int bcm63xx_spi_probe(struct platform_device *pdev)
|
||||
default:
|
||||
dev_err(dev, "unsupported MSG_CTL width: %d\n",
|
||||
bs->msg_ctl_width);
|
||||
goto out_clk_disable;
|
||||
goto out_err;
|
||||
}
|
||||
|
||||
/* Initialize hardware */
|
||||
|
Loading…
Reference in New Issue
Block a user