aboutsummaryrefslogtreecommitdiffstats
path: root/sound/mips/au1x00.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/mips/au1x00.c')
-rw-r--r--sound/mips/au1x00.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/mips/au1x00.c b/sound/mips/au1x00.c
index d10ef7675268..fbcaa5434fd8 100644
--- a/sound/mips/au1x00.c
+++ b/sound/mips/au1x00.c
@@ -648,14 +648,14 @@ static int au1000_ac97_probe(struct platform_device *pdev)
648 goto out; 648 goto out;
649 649
650 err = -EBUSY; 650 err = -EBUSY;
651 au1000->ac97_res_port = request_mem_region(r->start, 651 au1000->ac97_res_port = request_mem_region(r->start, resource_size(r),
652 r->end - r->start + 1, pdev->name); 652 pdev->name);
653 if (!au1000->ac97_res_port) { 653 if (!au1000->ac97_res_port) {
654 snd_printk(KERN_ERR "ALSA AC97: can't grab AC97 port\n"); 654 snd_printk(KERN_ERR "ALSA AC97: can't grab AC97 port\n");
655 goto out; 655 goto out;
656 } 656 }
657 657
658 io = ioremap(r->start, r->end - r->start + 1); 658 io = ioremap(r->start, resource_size(r));
659 if (!io) 659 if (!io)
660 goto out; 660 goto out;
661 661