diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-02-18 16:25:40 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-02-18 16:26:58 -0500 |
commit | c6f2981170272cce2c192087a16dd74dbde25ed2 (patch) | |
tree | 53b482c2e5fc318b29596ea3be43c3be40e7d89d /sound/soc/codecs | |
parent | 519cf2df5fb50c6d24412b2421ce2d1ff0346163 (diff) |
ASoC: Add device init/exit annotations to new-style Wolfson CODEC drivers
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/wm8350.c | 2 | ||||
-rw-r--r-- | sound/soc/codecs/wm8731.c | 8 | ||||
-rw-r--r-- | sound/soc/codecs/wm8900.c | 8 | ||||
-rw-r--r-- | sound/soc/codecs/wm8903.c | 8 |
4 files changed, 13 insertions, 13 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index d3562788d42b..359e5cc86f34 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c | |||
@@ -1574,7 +1574,7 @@ struct snd_soc_codec_device soc_codec_dev_wm8350 = { | |||
1574 | }; | 1574 | }; |
1575 | EXPORT_SYMBOL_GPL(soc_codec_dev_wm8350); | 1575 | EXPORT_SYMBOL_GPL(soc_codec_dev_wm8350); |
1576 | 1576 | ||
1577 | static int wm8350_codec_probe(struct platform_device *pdev) | 1577 | static __devinit int wm8350_codec_probe(struct platform_device *pdev) |
1578 | { | 1578 | { |
1579 | struct wm8350 *wm8350 = platform_get_drvdata(pdev); | 1579 | struct wm8350 *wm8350 = platform_get_drvdata(pdev); |
1580 | struct wm8350_data *priv; | 1580 | struct wm8350_data *priv; |
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index 9c9fc3b5a6c8..4cac3195bfa3 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c | |||
@@ -686,8 +686,8 @@ static struct spi_driver wm8731_spi_driver = { | |||
686 | #endif /* CONFIG_SPI_MASTER */ | 686 | #endif /* CONFIG_SPI_MASTER */ |
687 | 687 | ||
688 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) | 688 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) |
689 | static int wm8731_i2c_probe(struct i2c_client *i2c, | 689 | static __devinit int wm8731_i2c_probe(struct i2c_client *i2c, |
690 | const struct i2c_device_id *id) | 690 | const struct i2c_device_id *id) |
691 | { | 691 | { |
692 | struct wm8731_priv *wm8731; | 692 | struct wm8731_priv *wm8731; |
693 | struct snd_soc_codec *codec; | 693 | struct snd_soc_codec *codec; |
@@ -707,7 +707,7 @@ static int wm8731_i2c_probe(struct i2c_client *i2c, | |||
707 | return wm8731_register(wm8731); | 707 | return wm8731_register(wm8731); |
708 | } | 708 | } |
709 | 709 | ||
710 | static int wm8731_i2c_remove(struct i2c_client *client) | 710 | static __devexit int wm8731_i2c_remove(struct i2c_client *client) |
711 | { | 711 | { |
712 | struct wm8731_priv *wm8731 = i2c_get_clientdata(client); | 712 | struct wm8731_priv *wm8731 = i2c_get_clientdata(client); |
713 | wm8731_unregister(wm8731); | 713 | wm8731_unregister(wm8731); |
@@ -726,7 +726,7 @@ static struct i2c_driver wm8731_i2c_driver = { | |||
726 | .owner = THIS_MODULE, | 726 | .owner = THIS_MODULE, |
727 | }, | 727 | }, |
728 | .probe = wm8731_i2c_probe, | 728 | .probe = wm8731_i2c_probe, |
729 | .remove = wm8731_i2c_remove, | 729 | .remove = __devexit_p(wm8731_i2c_remove), |
730 | .id_table = wm8731_i2c_id, | 730 | .id_table = wm8731_i2c_id, |
731 | }; | 731 | }; |
732 | #endif | 732 | #endif |
diff --git a/sound/soc/codecs/wm8900.c b/sound/soc/codecs/wm8900.c index 85c0f1bc6766..da5ca64f89bb 100644 --- a/sound/soc/codecs/wm8900.c +++ b/sound/soc/codecs/wm8900.c | |||
@@ -1272,8 +1272,8 @@ static int wm8900_resume(struct platform_device *pdev) | |||
1272 | 1272 | ||
1273 | static struct snd_soc_codec *wm8900_codec; | 1273 | static struct snd_soc_codec *wm8900_codec; |
1274 | 1274 | ||
1275 | static int wm8900_i2c_probe(struct i2c_client *i2c, | 1275 | static __devinit int wm8900_i2c_probe(struct i2c_client *i2c, |
1276 | const struct i2c_device_id *id) | 1276 | const struct i2c_device_id *id) |
1277 | { | 1277 | { |
1278 | struct wm8900_priv *wm8900; | 1278 | struct wm8900_priv *wm8900; |
1279 | struct snd_soc_codec *codec; | 1279 | struct snd_soc_codec *codec; |
@@ -1372,7 +1372,7 @@ err: | |||
1372 | return ret; | 1372 | return ret; |
1373 | } | 1373 | } |
1374 | 1374 | ||
1375 | static int wm8900_i2c_remove(struct i2c_client *client) | 1375 | static __devexit int wm8900_i2c_remove(struct i2c_client *client) |
1376 | { | 1376 | { |
1377 | snd_soc_unregister_dai(&wm8900_dai); | 1377 | snd_soc_unregister_dai(&wm8900_dai); |
1378 | snd_soc_unregister_codec(wm8900_codec); | 1378 | snd_soc_unregister_codec(wm8900_codec); |
@@ -1398,7 +1398,7 @@ static struct i2c_driver wm8900_i2c_driver = { | |||
1398 | .owner = THIS_MODULE, | 1398 | .owner = THIS_MODULE, |
1399 | }, | 1399 | }, |
1400 | .probe = wm8900_i2c_probe, | 1400 | .probe = wm8900_i2c_probe, |
1401 | .remove = wm8900_i2c_remove, | 1401 | .remove = __devexit_p(wm8900_i2c_remove), |
1402 | .id_table = wm8900_i2c_id, | 1402 | .id_table = wm8900_i2c_id, |
1403 | }; | 1403 | }; |
1404 | 1404 | ||
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index d36b2b1edf19..c6fa8a71b4dd 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c | |||
@@ -1562,8 +1562,8 @@ static int wm8903_resume(struct platform_device *pdev) | |||
1562 | 1562 | ||
1563 | static struct snd_soc_codec *wm8903_codec; | 1563 | static struct snd_soc_codec *wm8903_codec; |
1564 | 1564 | ||
1565 | static int wm8903_i2c_probe(struct i2c_client *i2c, | 1565 | static __devinit int wm8903_i2c_probe(struct i2c_client *i2c, |
1566 | const struct i2c_device_id *id) | 1566 | const struct i2c_device_id *id) |
1567 | { | 1567 | { |
1568 | struct wm8903_priv *wm8903; | 1568 | struct wm8903_priv *wm8903; |
1569 | struct snd_soc_codec *codec; | 1569 | struct snd_soc_codec *codec; |
@@ -1669,7 +1669,7 @@ err: | |||
1669 | return ret; | 1669 | return ret; |
1670 | } | 1670 | } |
1671 | 1671 | ||
1672 | static int wm8903_i2c_remove(struct i2c_client *client) | 1672 | static __devexit int wm8903_i2c_remove(struct i2c_client *client) |
1673 | { | 1673 | { |
1674 | struct snd_soc_codec *codec = i2c_get_clientdata(client); | 1674 | struct snd_soc_codec *codec = i2c_get_clientdata(client); |
1675 | 1675 | ||
@@ -1699,7 +1699,7 @@ static struct i2c_driver wm8903_i2c_driver = { | |||
1699 | .owner = THIS_MODULE, | 1699 | .owner = THIS_MODULE, |
1700 | }, | 1700 | }, |
1701 | .probe = wm8903_i2c_probe, | 1701 | .probe = wm8903_i2c_probe, |
1702 | .remove = wm8903_i2c_remove, | 1702 | .remove = __devexit_p(wm8903_i2c_remove), |
1703 | .id_table = wm8903_i2c_id, | 1703 | .id_table = wm8903_i2c_id, |
1704 | }; | 1704 | }; |
1705 | 1705 | ||