diff options
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/mpc5200_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/mpc5200_dma.c b/sound/soc/fsl/mpc5200_dma.c index 19ad0c1be67e..fd0dc46afc34 100644 --- a/sound/soc/fsl/mpc5200_dma.c +++ b/sound/soc/fsl/mpc5200_dma.c | |||
@@ -385,7 +385,7 @@ static int mpc5200_hpcd_probe(struct of_device *op) | |||
385 | dev_err(&op->dev, "Missing reg property\n"); | 385 | dev_err(&op->dev, "Missing reg property\n"); |
386 | return -ENODEV; | 386 | return -ENODEV; |
387 | } | 387 | } |
388 | regs = ioremap(res.start, 1 + res.end - res.start); | 388 | regs = ioremap(res.start, resource_size(&res)); |
389 | if (!regs) { | 389 | if (!regs) { |
390 | dev_err(&op->dev, "Could not map registers\n"); | 390 | dev_err(&op->dev, "Could not map registers\n"); |
391 | return -ENODEV; | 391 | return -ENODEV; |