[alsa-devel] [PATCH v2] alsa/Au1xxx-PSC: use resource_size
Wan ZongShun
mcuos.com at gmail.com
Fri May 28 11:07:40 CEST 2010
Dear Mark & Liam,
alsa Au1xxx-PSC use resource_size.
Manuel has agreed this following version patch, now, can it be merged?
Signed-off-by: Wan ZongShun<mcuos.com at gmail.com>
---
sound/soc/au1x/psc-ac97.c | 2 +-
sound/soc/au1x/psc-i2s.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/au1x/psc-ac97.c b/sound/soc/au1x/psc-ac97.c
index a61ccd2..a18e924 100644
--- a/sound/soc/au1x/psc-ac97.c
+++ b/sound/soc/au1x/psc-ac97.c
@@ -375,7 +375,7 @@ static int __devinit au1xpsc_ac97_drvprobe(struct
platform_device *pdev)
}
ret = -EBUSY;
- wd->ioarea = request_mem_region(r->start, r->end - r->start + 1,
+ wd->ioarea = request_mem_region(r->start, resource_size(r),
"au1xpsc_ac97");
if (!wd->ioarea)
goto out0;
diff --git a/sound/soc/au1x/psc-i2s.c b/sound/soc/au1x/psc-i2s.c
index 495be6e..76e848f 100644
--- a/sound/soc/au1x/psc-i2s.c
+++ b/sound/soc/au1x/psc-i2s.c
@@ -321,7 +321,7 @@ static int __init au1xpsc_i2s_drvprobe(struct
platform_device *pdev)
}
ret = -EBUSY;
- wd->ioarea = request_mem_region(r->start, r->end - r->start + 1,
+ wd->ioarea = request_mem_region(r->start, resource_size(r),
"au1xpsc_i2s");
if (!wd->ioarea)
goto out0;
--
1.6.3.3
More information about the Alsa-devel
mailing list