diff options
Diffstat (limited to 'sound/soc/codecs/da7210.c')
-rw-r--r-- | sound/soc/codecs/da7210.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sound/soc/codecs/da7210.c b/sound/soc/codecs/da7210.c index ab1ee5b734db..843c1eb72faf 100644 --- a/sound/soc/codecs/da7210.c +++ b/sound/soc/codecs/da7210.c | |||
@@ -1337,24 +1337,15 @@ static int __devinit da7210_spi_probe(struct spi_device *spi) | |||
1337 | if (ret != 0) | 1337 | if (ret != 0) |
1338 | dev_warn(&spi->dev, "Failed to apply regmap patch: %d\n", ret); | 1338 | dev_warn(&spi->dev, "Failed to apply regmap patch: %d\n", ret); |
1339 | 1339 | ||
1340 | ret = snd_soc_register_codec(&spi->dev, | 1340 | ret = snd_soc_register_codec(&spi->dev, |
1341 | &soc_codec_dev_da7210, &da7210_dai, 1); | 1341 | &soc_codec_dev_da7210, &da7210_dai, 1); |
1342 | if (ret < 0) | ||
1343 | goto err_regmap; | ||
1344 | |||
1345 | return ret; | ||
1346 | |||
1347 | err_regmap: | ||
1348 | regmap_exit(da7210->regmap); | ||
1349 | 1342 | ||
1350 | return ret; | 1343 | return ret; |
1351 | } | 1344 | } |
1352 | 1345 | ||
1353 | static int __devexit da7210_spi_remove(struct spi_device *spi) | 1346 | static int __devexit da7210_spi_remove(struct spi_device *spi) |
1354 | { | 1347 | { |
1355 | struct da7210_priv *da7210 = spi_get_drvdata(spi); | ||
1356 | snd_soc_unregister_codec(&spi->dev); | 1348 | snd_soc_unregister_codec(&spi->dev); |
1357 | regmap_exit(da7210->regmap); | ||
1358 | return 0; | 1349 | return 0; |
1359 | } | 1350 | } |
1360 | 1351 | ||