diff options
| -rw-r--r-- | sound/soc/spear/spdif_in.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sound/soc/spear/spdif_in.c b/sound/soc/spear/spdif_in.c index 63acfeb4b69d..21a8c954af1c 100644 --- a/sound/soc/spear/spdif_in.c +++ b/sound/soc/spear/spdif_in.c | |||
| @@ -257,20 +257,12 @@ static int spdif_in_probe(struct platform_device *pdev) | |||
| 257 | return ret; | 257 | return ret; |
| 258 | } | 258 | } |
| 259 | 259 | ||
| 260 | return snd_soc_register_component(&pdev->dev, &spdif_in_component, | 260 | return devm_snd_soc_register_component(&pdev->dev, &spdif_in_component, |
| 261 | &spdif_in_dai, 1); | 261 | &spdif_in_dai, 1); |
| 262 | } | ||
| 263 | |||
| 264 | static int spdif_in_remove(struct platform_device *pdev) | ||
| 265 | { | ||
| 266 | snd_soc_unregister_component(&pdev->dev); | ||
| 267 | |||
| 268 | return 0; | ||
| 269 | } | 262 | } |
| 270 | 263 | ||
| 271 | static struct platform_driver spdif_in_driver = { | 264 | static struct platform_driver spdif_in_driver = { |
| 272 | .probe = spdif_in_probe, | 265 | .probe = spdif_in_probe, |
| 273 | .remove = spdif_in_remove, | ||
| 274 | .driver = { | 266 | .driver = { |
| 275 | .name = "spdif-in", | 267 | .name = "spdif-in", |
| 276 | .owner = THIS_MODULE, | 268 | .owner = THIS_MODULE, |
