diff options
Diffstat (limited to 'sound/sh/aica.c')
-rw-r--r-- | sound/sh/aica.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/sh/aica.c b/sound/sh/aica.c index 54df8baf916f..7c920f3e7fe3 100644 --- a/sound/sh/aica.c +++ b/sound/sh/aica.c | |||
@@ -106,7 +106,8 @@ static void spu_memset(u32 toi, u32 what, int length) | |||
106 | { | 106 | { |
107 | int i; | 107 | int i; |
108 | unsigned long flags; | 108 | unsigned long flags; |
109 | snd_assert(length % 4 == 0, return); | 109 | if (snd_BUG_ON(length % 4)) |
110 | return; | ||
110 | for (i = 0; i < length; i++) { | 111 | for (i = 0; i < length; i++) { |
111 | if (!(i % 8)) | 112 | if (!(i % 8)) |
112 | spu_write_wait(); | 113 | spu_write_wait(); |
@@ -589,7 +590,7 @@ static int __devinit add_aicamixer_controls(struct snd_card_aica | |||
589 | return 0; | 590 | return 0; |
590 | } | 591 | } |
591 | 592 | ||
592 | static int snd_aica_remove(struct platform_device *devptr) | 593 | static int __devexit snd_aica_remove(struct platform_device *devptr) |
593 | { | 594 | { |
594 | struct snd_card_aica *dreamcastcard; | 595 | struct snd_card_aica *dreamcastcard; |
595 | dreamcastcard = platform_get_drvdata(devptr); | 596 | dreamcastcard = platform_get_drvdata(devptr); |
@@ -601,7 +602,7 @@ static int snd_aica_remove(struct platform_device *devptr) | |||
601 | return 0; | 602 | return 0; |
602 | } | 603 | } |
603 | 604 | ||
604 | static int __init snd_aica_probe(struct platform_device *devptr) | 605 | static int __devinit snd_aica_probe(struct platform_device *devptr) |
605 | { | 606 | { |
606 | int err; | 607 | int err; |
607 | struct snd_card_aica *dreamcastcard; | 608 | struct snd_card_aica *dreamcastcard; |
@@ -650,7 +651,7 @@ static int __init snd_aica_probe(struct platform_device *devptr) | |||
650 | 651 | ||
651 | static struct platform_driver snd_aica_driver = { | 652 | static struct platform_driver snd_aica_driver = { |
652 | .probe = snd_aica_probe, | 653 | .probe = snd_aica_probe, |
653 | .remove = snd_aica_remove, | 654 | .remove = __devexit_p(snd_aica_remove), |
654 | .driver = { | 655 | .driver = { |
655 | .name = SND_AICA_DRIVER}, | 656 | .name = SND_AICA_DRIVER}, |
656 | }; | 657 | }; |