diff options
Diffstat (limited to 'sound/soc/au1x/ac97c.c')
-rw-r--r-- | sound/soc/au1x/ac97c.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/soc/au1x/ac97c.c b/sound/soc/au1x/ac97c.c index ea7d9d157022..44b8dcecf571 100644 --- a/sound/soc/au1x/ac97c.c +++ b/sound/soc/au1x/ac97c.c | |||
@@ -223,6 +223,10 @@ static struct snd_soc_dai_driver au1xac97c_dai_driver = { | |||
223 | .ops = &alchemy_ac97c_ops, | 223 | .ops = &alchemy_ac97c_ops, |
224 | }; | 224 | }; |
225 | 225 | ||
226 | static const struct snd_soc_component_driver au1xac97c_component = { | ||
227 | .name = "au1xac97c", | ||
228 | }; | ||
229 | |||
226 | static int au1xac97c_drvprobe(struct platform_device *pdev) | 230 | static int au1xac97c_drvprobe(struct platform_device *pdev) |
227 | { | 231 | { |
228 | int ret; | 232 | int ret; |
@@ -268,7 +272,8 @@ static int au1xac97c_drvprobe(struct platform_device *pdev) | |||
268 | 272 | ||
269 | platform_set_drvdata(pdev, ctx); | 273 | platform_set_drvdata(pdev, ctx); |
270 | 274 | ||
271 | ret = snd_soc_register_dai(&pdev->dev, &au1xac97c_dai_driver); | 275 | ret = snd_soc_register_component(&pdev->dev, &au1xac97c_component, |
276 | &au1xac97c_dai_driver, 1); | ||
272 | if (ret) | 277 | if (ret) |
273 | return ret; | 278 | return ret; |
274 | 279 | ||
@@ -280,7 +285,7 @@ static int au1xac97c_drvremove(struct platform_device *pdev) | |||
280 | { | 285 | { |
281 | struct au1xpsc_audio_data *ctx = platform_get_drvdata(pdev); | 286 | struct au1xpsc_audio_data *ctx = platform_get_drvdata(pdev); |
282 | 287 | ||
283 | snd_soc_unregister_dai(&pdev->dev); | 288 | snd_soc_unregister_component(&pdev->dev); |
284 | 289 | ||
285 | WR(ctx, AC97_ENABLE, EN_D); /* clock off, disable */ | 290 | WR(ctx, AC97_ENABLE, EN_D); /* clock off, disable */ |
286 | 291 | ||