diff options
Diffstat (limited to 'sound/soc/pxa/pxa2xx-i2s.c')
| -rw-r--r-- | sound/soc/pxa/pxa2xx-i2s.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/soc/pxa/pxa2xx-i2s.c b/sound/soc/pxa/pxa2xx-i2s.c index 6b1a06f67564..f7ca71664112 100644 --- a/sound/soc/pxa/pxa2xx-i2s.c +++ b/sound/soc/pxa/pxa2xx-i2s.c | |||
| @@ -360,14 +360,19 @@ static struct snd_soc_dai_driver pxa_i2s_dai = { | |||
| 360 | .symmetric_rates = 1, | 360 | .symmetric_rates = 1, |
| 361 | }; | 361 | }; |
| 362 | 362 | ||
| 363 | static const struct snd_soc_component_driver pxa_i2s_component = { | ||
| 364 | .name = "pxa-i2s", | ||
| 365 | }; | ||
| 366 | |||
| 363 | static int pxa2xx_i2s_drv_probe(struct platform_device *pdev) | 367 | static int pxa2xx_i2s_drv_probe(struct platform_device *pdev) |
| 364 | { | 368 | { |
| 365 | return snd_soc_register_dai(&pdev->dev, &pxa_i2s_dai); | 369 | return snd_soc_register_component(&pdev->dev, &pxa_i2s_component, |
| 370 | &pxa_i2s_dai, 1); | ||
| 366 | } | 371 | } |
| 367 | 372 | ||
| 368 | static int pxa2xx_i2s_drv_remove(struct platform_device *pdev) | 373 | static int pxa2xx_i2s_drv_remove(struct platform_device *pdev) |
| 369 | { | 374 | { |
| 370 | snd_soc_unregister_dai(&pdev->dev); | 375 | snd_soc_unregister_component(&pdev->dev); |
| 371 | return 0; | 376 | return 0; |
| 372 | } | 377 | } |
| 373 | 378 | ||
