diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-12-10 03:00:45 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-12-10 03:00:45 -0500 |
commit | 97768a8e658605a905ba0d908d1b23b475170bed (patch) | |
tree | 0431dd9a118c138d164c263033a53502e4c01586 /sound/soc/codecs/da7210.c | |
parent | 9621055fbbb190264cb6a8182b70e3f0f917d770 (diff) | |
parent | 7a79e94e973639da7bf1b8242d504f9db9e5e848 (diff) |
Merge tag 'asoc-3.8' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-next
ASoC: Updates for v3.8
Some incremental updates, nothing too exciting. The biggest block here
is the __dev annotation removal stuff from Bill, everything else is the
usual driver-specific stuff - a combination of fixes and development.
There will be at least more more set of fixes to come but I wanted to
get these out ready for the merge window to make sure Bill's stuff makes
it in.
Diffstat (limited to 'sound/soc/codecs/da7210.c')
-rw-r--r-- | sound/soc/codecs/da7210.c | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/sound/soc/codecs/da7210.c b/sound/soc/codecs/da7210.c index ab1ee5b734db..9c1231456502 100644 --- a/sound/soc/codecs/da7210.c +++ b/sound/soc/codecs/da7210.c | |||
@@ -1218,8 +1218,8 @@ static const struct regmap_config da7210_regmap_config_i2c = { | |||
1218 | .cache_type = REGCACHE_RBTREE, | 1218 | .cache_type = REGCACHE_RBTREE, |
1219 | }; | 1219 | }; |
1220 | 1220 | ||
1221 | static int __devinit da7210_i2c_probe(struct i2c_client *i2c, | 1221 | static int da7210_i2c_probe(struct i2c_client *i2c, |
1222 | const struct i2c_device_id *id) | 1222 | const struct i2c_device_id *id) |
1223 | { | 1223 | { |
1224 | struct da7210_priv *da7210; | 1224 | struct da7210_priv *da7210; |
1225 | int ret; | 1225 | int ret; |
@@ -1251,7 +1251,7 @@ static int __devinit da7210_i2c_probe(struct i2c_client *i2c, | |||
1251 | return ret; | 1251 | return ret; |
1252 | } | 1252 | } |
1253 | 1253 | ||
1254 | static int __devexit da7210_i2c_remove(struct i2c_client *client) | 1254 | static int da7210_i2c_remove(struct i2c_client *client) |
1255 | { | 1255 | { |
1256 | snd_soc_unregister_codec(&client->dev); | 1256 | snd_soc_unregister_codec(&client->dev); |
1257 | return 0; | 1257 | return 0; |
@@ -1270,7 +1270,7 @@ static struct i2c_driver da7210_i2c_driver = { | |||
1270 | .owner = THIS_MODULE, | 1270 | .owner = THIS_MODULE, |
1271 | }, | 1271 | }, |
1272 | .probe = da7210_i2c_probe, | 1272 | .probe = da7210_i2c_probe, |
1273 | .remove = __devexit_p(da7210_i2c_remove), | 1273 | .remove = da7210_i2c_remove, |
1274 | .id_table = da7210_i2c_id, | 1274 | .id_table = da7210_i2c_id, |
1275 | }; | 1275 | }; |
1276 | #endif | 1276 | #endif |
@@ -1314,7 +1314,7 @@ static const struct regmap_config da7210_regmap_config_spi = { | |||
1314 | .cache_type = REGCACHE_RBTREE, | 1314 | .cache_type = REGCACHE_RBTREE, |
1315 | }; | 1315 | }; |
1316 | 1316 | ||
1317 | static int __devinit da7210_spi_probe(struct spi_device *spi) | 1317 | static int da7210_spi_probe(struct spi_device *spi) |
1318 | { | 1318 | { |
1319 | struct da7210_priv *da7210; | 1319 | struct da7210_priv *da7210; |
1320 | int ret; | 1320 | int ret; |
@@ -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 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 | ||
@@ -1364,7 +1355,7 @@ static struct spi_driver da7210_spi_driver = { | |||
1364 | .owner = THIS_MODULE, | 1355 | .owner = THIS_MODULE, |
1365 | }, | 1356 | }, |
1366 | .probe = da7210_spi_probe, | 1357 | .probe = da7210_spi_probe, |
1367 | .remove = __devexit_p(da7210_spi_remove) | 1358 | .remove = da7210_spi_remove |
1368 | }; | 1359 | }; |
1369 | #endif | 1360 | #endif |
1370 | 1361 | ||