diff options
Diffstat (limited to 'sound/atmel/ac97c.c')
-rw-r--r-- | sound/atmel/ac97c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c index ac35222ad0dd..6e5addeb236b 100644 --- a/sound/atmel/ac97c.c +++ b/sound/atmel/ac97c.c | |||
@@ -971,7 +971,7 @@ static int __devinit atmel_ac97c_probe(struct platform_device *pdev) | |||
971 | chip->card = card; | 971 | chip->card = card; |
972 | chip->pclk = pclk; | 972 | chip->pclk = pclk; |
973 | chip->pdev = pdev; | 973 | chip->pdev = pdev; |
974 | chip->regs = ioremap(regs->start, regs->end - regs->start + 1); | 974 | chip->regs = ioremap(regs->start, resource_size(regs)); |
975 | 975 | ||
976 | if (!chip->regs) { | 976 | if (!chip->regs) { |
977 | dev_dbg(&pdev->dev, "could not remap register memory\n"); | 977 | dev_dbg(&pdev->dev, "could not remap register memory\n"); |