diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-06-21 17:52:58 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-06-21 17:52:58 +0200 |
commit | 0a1801e26c5237c259e863b4071c6a61d33ec666 (patch) | |
tree | d6400940c42cd04742398c85cf18e532dc2e56b7 /sound/soc/soc-utils.c | |
parent | 0af49ffe3c04ed5a9095ea1349d3e26a1e8b311a (diff) | |
parent | 84bbc4aa2de97143db0f6ef0c3fa0bd84f73b207 (diff) |
Merge tag 'asoc-v3.11' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-next
ASoC: Updates for v3.11
Not a big release subsystem wise, the main changes have been some nice
improvements on the driver side:
- Lots of cleanups and fixes for Blackfin, SGTL5000 and UX500.
- Generalisation of the Bluetooth and HDMI stub drivers.
- New CODEC drivers for SSM2518 and RT5640.
- New machine driver for Tegra CPUs with RT5640.
Diffstat (limited to 'sound/soc/soc-utils.c')
-rw-r--r-- | sound/soc/soc-utils.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c index 4b3be6c3c91e..29b211e9c060 100644 --- a/sound/soc/soc-utils.c +++ b/sound/soc/soc-utils.c @@ -159,15 +159,10 @@ int __init snd_soc_util_init(void) { int ret; - soc_dummy_dev = platform_device_alloc("snd-soc-dummy", -1); - if (!soc_dummy_dev) - return -ENOMEM; - - ret = platform_device_add(soc_dummy_dev); - if (ret != 0) { - platform_device_put(soc_dummy_dev); - return ret; - } + soc_dummy_dev = + platform_device_register_simple("snd-soc-dummy", -1, NULL, 0); + if (IS_ERR(soc_dummy_dev)) + return PTR_ERR(soc_dummy_dev); ret = platform_driver_register(&soc_dummy_driver); if (ret != 0) |