Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295343
b: refs/heads/master
c: 9a25706
h: refs/heads/master
i:
  295341: 94077c4
  295339: 60a256e
  295335: 7ee6827
  295327: 8828596
v: v3
  • Loading branch information
Russell King committed Jan 25, 2012
1 parent 87ce715 commit 2653c57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 46d4bb9b52829c7d94c528201f27f6288be3f45e
refs/heads/master: 9a25706b71ea06c3e2cfd165ebf98a5557ecdd0e
9 changes: 3 additions & 6 deletions trunk/arch/arm/mach-integrator/impd1.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,24 +401,21 @@ static int impd1_probe(struct lm_device *dev)

pc_base = dev->resource.start + idev->offset;

d = kzalloc(sizeof(struct amba_device), GFP_KERNEL);
d = amba_device_alloc(NULL, pc_base, SZ_4K);
if (!d)
continue;

dev_set_name(&d->dev, "lm%x:%5.5lx", dev->id, idev->offset >> 12);
d->dev.parent = &dev->dev;
d->res.start = dev->resource.start + idev->offset;
d->res.end = d->res.start + SZ_4K - 1;
d->res.flags = IORESOURCE_MEM;
d->irq[0] = dev->irq;
d->irq[1] = dev->irq;
d->periphid = idev->id;
d->dev.platform_data = idev->platform_data;

ret = amba_device_register(d, &dev->resource);
ret = amba_device_add(d, &dev->resource);
if (ret) {
dev_err(&d->dev, "unable to register device: %d\n", ret);
kfree(d);
amba_device_put(d);
}
}

Expand Down

0 comments on commit 2653c57

Please sign in to comment.