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 9c05f381d95e0f700ee7ebaa956deb24a80e0710..13802ff7cf05956151d59615f6a73d0ee0e61877 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 b4172fdd2c48ecfd5ef6b8f10c2578a50efaf6e5..19e0d2a9c828ac14cf8d7df3f2991f0a8cd54656 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: