Skip to contentSkip to conversation

ASoC: S3C24XX: Remove I2Sv3 specific check

PATCH Applied [email protected] 2 participants 4 messages Dec 9, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/7 ASoC: S3C24XX: Remove I2Sv3 specific check

From: Jassi Brar <[email protected]>

Since, now the I2Sv3 driver itself figures out and provides the start address of the base register, the s3c64xx specific patch can be discarded in the I2Sv2 core code.

---
 sound/soc/s3c24xx/s3c-i2s-v2.c |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)
sound/soc/s3c24xx/s3c-i2s-v2.c +0 -18
index e994d83..422b74c 100644
@@ -628,24 +628,6 @@ int s3c_i2sv2_probe(struct platform_device *pdev,
 	/* record our i2s structure for later use in the callbacks */
 	dai->private_data = i2s;
 
-	if (!base) {
-		struct resource *res = platform_get_resource(pdev,
-							     IORESOURCE_MEM,
-							     0);
-		if (!res) {
-			dev_err(dev, "Unable to get register resource\n");
-			return -ENXIO;
-		}
-
-		if (!request_mem_region(res->start, resource_size(res),
-					"s3c64xx-i2s-v4")) {
-			dev_err(dev, "Unable to request register region\n");
-			return -EBUSY;
-		}
-
-		base = res->start;
-	}
-
 	i2s->regs = ioremap(base, 0x100);
 	if (i2s->regs == NULL) {
 		dev_err(dev, "cannot ioremap registers\n");
Signature · 1 line
1.6.2.5
#1 lore raw

sound/soc/s3c24xx/s3c-i2s-v2.c int s3c_i2sv2_probe(struct platform_device *pdev, · line 632

Quoted 8 lines · On Wed, Dec 09, 2009 at 01:30:01PM +0900, [email protected] wrote:

From: Jassi Brar <[email protected]>

Since, now the I2Sv3 driver itself figures out and provides the start address of the base register, the s3c64xx specific patch can be discarded in the I2Sv2 core code.

sound/soc/s3c24xx/s3c-i2s-v2.c +0 -2
-	if (!base) {
-		struct resource *res = platform_get_resource(pdev,

This is used by the S3C24xx IIS as well so they need converting over before this can be removed. To be honest I hadn't realised that S3C64xx was using this at all.

author
#2 lore raw
Quoted 7 lines · Mark Brown
Quoted 5 lines · On Wed, Dec 09, 2009 at 01:30:01PM +0900, [email protected] wrote:

From: Jassi Brar <[email protected]>

Since, now the I2Sv3 driver itself figures out and provides the start address of the base register, the s3c64xx specific patch can be discarded in the I2Sv2 core code.

Quoted 6 lines
Quoted 2 lines

-     if (!base) {
-             struct resource *res = platform_get_resource(pdev,

This is used by the S3C24xx IIS as well so they need converting over before this can be removed.  To be honest I hadn't realised that S3C64xx was using this at all.

Well, only s3c64xx was using this piece of code. s3c2412-i2s.c always passed physical address of I2S base. And there is no other user of this function. So, i think we can safely remove it.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#3 lore raw
Quoted 9 lines · jassi brar

On Wed, Dec 9, 2009 at 7:41 PM, Mark Brown

Quoted 3 lines

This is used by the S3C24xx IIS as well so they need converting over before this can be removed.  To be honest I hadn't realised that S3C64xx was using this at all.

Well, only s3c64xx was using this piece of code. s3c2412-i2s.c always passed physical address of I2S base. And there is no other user of this function. So, i think we can safely remove it.

Yes, it's the other way round to that I remembered.