mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
ARM: 7589/1: integrator: pass the lm resource to amba
This passes the lm resource to register the AMBA devices on the LM as contained within the LM resource. Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
3ad909bc8f
commit
2148b93ac8
1 changed files with 4 additions and 3 deletions
|
|
@ -402,9 +402,10 @@ static int impd1_probe(struct lm_device *dev)
|
|||
|
||||
pc_base = dev->resource.start + idev->offset;
|
||||
snprintf(devname, 32, "lm%x:%5.5lx", dev->id, idev->offset >> 12);
|
||||
d = amba_ahb_device_add(&dev->dev, devname, pc_base, SZ_4K,
|
||||
dev->irq, dev->irq,
|
||||
idev->platform_data, idev->id);
|
||||
d = amba_ahb_device_add_res(&dev->dev, devname, pc_base, SZ_4K,
|
||||
dev->irq, dev->irq,
|
||||
idev->platform_data, idev->id,
|
||||
&dev->resource);
|
||||
if (IS_ERR(d)) {
|
||||
dev_err(&dev->dev, "unable to register device: %ld\n", PTR_ERR(d));
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue