Skip to content

Commit 5c12d20

Browse files
AxelLinbroonie
authored andcommitted
ASoC: Return proper error for omap3pandora_soc_init
Return PTR_ERR(omap3pandora_dac_reg) instead of 0 if regulator_get failed. Signed-off-by: Axel Lin <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 2f7dcee commit 5c12d20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/soc/omap/omap3pandora.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ static int __init omap3pandora_soc_init(void)
306306
pr_err(PREFIX "Failed to get DAC regulator from %s: %ld\n",
307307
dev_name(&omap3pandora_snd_device->dev),
308308
PTR_ERR(omap3pandora_dac_reg));
309+
ret = PTR_ERR(omap3pandora_dac_reg);
309310
goto fail3;
310311
}
311312

0 commit comments

Comments
 (0)