diff options
-rw-r--r-- | sound/soc/generic/simple-card.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 7a9b6b4898c0..3d190d05ad4a 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c | |||
@@ -234,14 +234,7 @@ static int asoc_simple_card_probe(struct platform_device *pdev) | |||
234 | cinfo->snd_card.num_links = 1; | 234 | cinfo->snd_card.num_links = 1; |
235 | cinfo->snd_card.dev = &pdev->dev; | 235 | cinfo->snd_card.dev = &pdev->dev; |
236 | 236 | ||
237 | return snd_soc_register_card(&cinfo->snd_card); | 237 | return devm_snd_soc_register_card(&pdev->dev, &cinfo->snd_card); |
238 | } | ||
239 | |||
240 | static int asoc_simple_card_remove(struct platform_device *pdev) | ||
241 | { | ||
242 | struct asoc_simple_card_info *cinfo = pdev->dev.platform_data; | ||
243 | |||
244 | return snd_soc_unregister_card(&cinfo->snd_card); | ||
245 | } | 238 | } |
246 | 239 | ||
247 | static const struct of_device_id asoc_simple_of_match[] = { | 240 | static const struct of_device_id asoc_simple_of_match[] = { |
@@ -257,7 +250,6 @@ static struct platform_driver asoc_simple_card = { | |||
257 | .of_match_table = asoc_simple_of_match, | 250 | .of_match_table = asoc_simple_of_match, |
258 | }, | 251 | }, |
259 | .probe = asoc_simple_card_probe, | 252 | .probe = asoc_simple_card_probe, |
260 | .remove = asoc_simple_card_remove, | ||
261 | }; | 253 | }; |
262 | 254 | ||
263 | module_platform_driver(asoc_simple_card); | 255 | module_platform_driver(asoc_simple_card); |