ASoC: Remove unreachable code in au1xac97c_drvprobe and au1xi2s_drvprobe
authorAxel Lin <axel.lin@gmail.com>
Wed, 17 Aug 2011 07:14:33 +0000 (15:14 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Aug 2011 07:24:16 +0000 (16:24 +0900)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/au1x/ac97c.c
sound/soc/au1x/i2sc.c

index 9c05f38..13802ff 100644 (file)
@@ -275,8 +275,6 @@ static int __devinit au1xac97c_drvprobe(struct platform_device *pdev)
        ac97c_workdata = ctx;
        return 0;
 
-
-       snd_soc_unregister_dai(&pdev->dev);
 out1:
        release_mem_region(r->start, resource_size(r));
 out0:
index b4172fd..19e0d2a 100644 (file)
@@ -267,7 +267,6 @@ static int __devinit au1xi2s_drvprobe(struct platform_device *pdev)
 
        return 0;
 
-       snd_soc_unregister_dai(&pdev->dev);
 out1:
        release_mem_region(r->start, resource_size(r));
 out0: