ASoC: imx-ssi: Say if we fail to register a second AC'97 bus

Saves anyone wondering what happened if they run into this error.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Mark Brown 2012-07-31 18:34:07 +01:00
parent 1427cc37b6
commit a0f1e98b34

View File

@ -560,6 +560,7 @@ static int imx_ssi_probe(struct platform_device *pdev)
if (ssi->flags & IMX_SSI_USE_AC97) {
if (ac97_ssi) {
dev_err(&pdev->dev, "AC'97 SSI already registered\n");
ret = -EBUSY;
goto failed_register;
}