summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs/devices.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-04-03 13:11:50 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-04-19 20:31:33 +0200
commit5002484b8ac93e8d32ca75e8a7504dbb9f7926fe (patch)
tree8a6a52698ba7d1df5138195b38039370590acb65 /arch/arm/mach-mxs/devices.c
parentARM: 7369/1: amba: add functions to add devices dynamically (diff)
downloadlinux-5002484b8ac93e8d32ca75e8a7504dbb9f7926fe.tar.xz
linux-5002484b8ac93e8d32ca75e8a7504dbb9f7926fe.zip
ARM: 7370/2: mxs: factor out dynamic amba device allocator
Replace the local amba device allocator with the core code from the bus driver. Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-mxs/devices.c')
-rw-r--r--arch/arm/mach-mxs/devices.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/arm/mach-mxs/devices.c b/arch/arm/mach-mxs/devices.c
index 01faffec3064..cf50b5a66dda 100644
--- a/arch/arm/mach-mxs/devices.c
+++ b/arch/arm/mach-mxs/devices.c
@@ -75,22 +75,6 @@ err:
return pdev;
}
-int __init mxs_add_amba_device(const struct amba_device *dev)
-{
- struct amba_device *adev = amba_device_alloc(dev->dev.init_name,
- dev->res.start, resource_size(&dev->res));
-
- if (!adev) {
- pr_err("%s: failed to allocate memory", __func__);
- return -ENOMEM;
- }
-
- adev->irq[0] = dev->irq[0];
- adev->irq[1] = dev->irq[1];
-
- return amba_device_add(adev, &iomem_resource);
-}
-
struct device mxs_apbh_bus = {
.init_name = "mxs_apbh",
.parent = &platform_bus,