diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-12-11 04:28:18 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-12-11 04:28:18 -0500 |
commit | 6de45d5d776d2a7e7a9adc8ea49d37fe1bd45fb2 (patch) | |
tree | bd84017381c3c2bb183ad9d392e2c2fceffe6038 /sound/soc | |
parent | 3b1228abc93f7ab0aa28c46341d6a0f7e2cade70 (diff) |
ALSA: ASoC - Fix DAI registration in s3c2443-ac97.c
Fixed the registration of dais in s3c2443-ac97.c.
sound/soc/s3c24xx/s3c2443-ac97.c: In function 's3c2443_ac97_init':
sound/soc/s3c24xx/s3c2443-ac97.c:401: warning: passing argument 1 of 'snd_soc_register_dai' from incompatible pointer type
sound/soc/s3c24xx/s3c2443-ac97.c: In function 's3c2443_ac97_exit':
sound/soc/s3c24xx/s3c2443-ac97.c:407: warning: passing argument 1 of 'snd_soc_unregister_dai' from incompatible pointer type
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/s3c24xx/s3c2443-ac97.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/s3c24xx/s3c2443-ac97.c b/sound/soc/s3c24xx/s3c2443-ac97.c index 723779a3058d..1bfce40bb2e4 100644 --- a/sound/soc/s3c24xx/s3c2443-ac97.c +++ b/sound/soc/s3c24xx/s3c2443-ac97.c | |||
@@ -398,13 +398,15 @@ EXPORT_SYMBOL_GPL(soc_ac97_ops); | |||
398 | 398 | ||
399 | static int __init s3c2443_ac97_init(void) | 399 | static int __init s3c2443_ac97_init(void) |
400 | { | 400 | { |
401 | return snd_soc_register_dai(&s3c2443_ac97_dai); | 401 | return snd_soc_register_dais(s3c2443_ac97_dai, |
402 | ARRAY_SIZE(s3c2443_ac97_dai)); | ||
402 | } | 403 | } |
403 | module_init(s3c2443_ac97_init); | 404 | module_init(s3c2443_ac97_init); |
404 | 405 | ||
405 | static void __exit s3c2443_ac97_exit(void) | 406 | static void __exit s3c2443_ac97_exit(void) |
406 | { | 407 | { |
407 | snd_soc_unregister_dai(&s3c2443_ac97_dai); | 408 | snd_soc_unregister_dais(s3c2443_ac97_dai, |
409 | ARRAY_SIZE(s3c2443_ac97_dai)); | ||
408 | } | 410 | } |
409 | module_exit(s3c2443_ac97_exit); | 411 | module_exit(s3c2443_ac97_exit); |
410 | 412 | ||