diff options
author | Mark Brown <broonie@linaro.org> | 2013-06-17 12:20:13 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-17 12:20:13 -0400 |
commit | b27729344d7bd00fed692db10f020e1689942f02 (patch) | |
tree | e5c5ec1e82ed34db783971de4d6cce1370f5221a | |
parent | c38a881ebbb15c3b1832adaad844e7ce73503f4f (diff) | |
parent | b1d9e66c1c8d0e4ad29328c4f37266f292d722d3 (diff) |
Merge remote-tracking branch 'asoc/topic/88pm860x' into asoc-next
-rw-r--r-- | sound/soc/codecs/88pm860x-codec.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sound/soc/codecs/88pm860x-codec.c b/sound/soc/codecs/88pm860x-codec.c index 60159c07448d..1382f3f3f4bf 100644 --- a/sound/soc/codecs/88pm860x-codec.c +++ b/sound/soc/codecs/88pm860x-codec.c | |||
@@ -1444,7 +1444,7 @@ static int pm860x_codec_probe(struct platform_device *pdev) | |||
1444 | res = platform_get_resource(pdev, IORESOURCE_IRQ, i); | 1444 | res = platform_get_resource(pdev, IORESOURCE_IRQ, i); |
1445 | if (!res) { | 1445 | if (!res) { |
1446 | dev_err(&pdev->dev, "Failed to get IRQ resources\n"); | 1446 | dev_err(&pdev->dev, "Failed to get IRQ resources\n"); |
1447 | goto out; | 1447 | return -EINVAL; |
1448 | } | 1448 | } |
1449 | pm860x->irq[i] = res->start + chip->irq_base; | 1449 | pm860x->irq[i] = res->start + chip->irq_base; |
1450 | strncpy(pm860x->name[i], res->name, MAX_NAME_LEN); | 1450 | strncpy(pm860x->name[i], res->name, MAX_NAME_LEN); |
@@ -1454,19 +1454,14 @@ static int pm860x_codec_probe(struct platform_device *pdev) | |||
1454 | pm860x_dai, ARRAY_SIZE(pm860x_dai)); | 1454 | pm860x_dai, ARRAY_SIZE(pm860x_dai)); |
1455 | if (ret) { | 1455 | if (ret) { |
1456 | dev_err(&pdev->dev, "Failed to register codec\n"); | 1456 | dev_err(&pdev->dev, "Failed to register codec\n"); |
1457 | goto out; | 1457 | return -EINVAL; |
1458 | } | 1458 | } |
1459 | return ret; | 1459 | return ret; |
1460 | |||
1461 | out: | ||
1462 | platform_set_drvdata(pdev, NULL); | ||
1463 | return -EINVAL; | ||
1464 | } | 1460 | } |
1465 | 1461 | ||
1466 | static int pm860x_codec_remove(struct platform_device *pdev) | 1462 | static int pm860x_codec_remove(struct platform_device *pdev) |
1467 | { | 1463 | { |
1468 | snd_soc_unregister_codec(&pdev->dev); | 1464 | snd_soc_unregister_codec(&pdev->dev); |
1469 | platform_set_drvdata(pdev, NULL); | ||
1470 | return 0; | 1465 | return 0; |
1471 | } | 1466 | } |
1472 | 1467 | ||