Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148238
b: refs/heads/master
c: c86bde5
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Apr 30, 2009
1 parent c4bb6a2 commit ebf2067
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 07736d48051869c37838635b41850618aa63b9a7
refs/heads/master: c86bde54062a4d02c1b58203b7802797e4007a8a
18 changes: 18 additions & 0 deletions trunk/sound/soc/s3c24xx/s3c-i2s-v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,24 @@ 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");
Expand Down

0 comments on commit ebf2067

Please sign in to comment.