Re: [PATCH v2] alsa/Au1xxx-PSC: use resource_size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
  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

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux