From: Wan ZongShun <mcuos.com@gmail.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>,
Liam Girdwood <lrg@slimlogic.co.uk>
Cc: Manuel Lauss <manuel.lauss@googlemail.com>,
alsa-devel <alsa-devel@alsa-project.org>
Subject: Re: [PATCH v2] alsa/Au1xxx-PSC: use resource_size
Date: Fri, 28 May 2010 17:07:40 +0800 [thread overview]
Message-ID: <4BFF87DC.4010300@gmail.com> (raw)
In-Reply-To: <AANLkTim9C08G5iOuKE9XOtFRlS616c6yk-7LNLddbVCl@mail.gmail.com>
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@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
next prev parent reply other threads:[~2010-05-28 9:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4BFF33B3.1040506@gmail.com>
2010-05-28 5:08 ` [PATCH] alsa/Au1xxx-PSC: use resource_size Manuel Lauss
2010-05-28 5:17 ` Wan ZongShun
2010-05-28 5:44 ` [PATCH v2] " Wan ZongShun
2010-05-28 5:52 ` Manuel Lauss
2010-05-28 6:31 ` Wan ZongShun
2010-05-28 6:53 ` Manuel Lauss
2010-05-28 7:05 ` Wan ZongShun
2010-05-28 9:07 ` Wan ZongShun [this message]
2010-05-31 11:08 ` Mark Brown
2010-05-31 12:36 ` Wan ZongShun
2010-05-31 10:47 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BFF87DC.4010300@gmail.com \
--to=mcuos.com@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@slimlogic.co.uk \
--cc=manuel.lauss@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).