]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7369/1: amba: add functions to add devices dynamically
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Apr 2012 10:58:42 +0000 (11:58 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 19 Apr 2012 18:31:33 +0000 (19:31 +0100)
commit201a6a268bfe58563ea2bc4f88ade878b2b5723d
tree89506b4f6d409e498886410bbf4f8518fb6a1d63
parent0c35245a681e6df58b66b75c1aac123223ee3149
ARM: 7369/1: amba: add functions to add devices dynamically

Add two functions to add APB and AHB devices to the amba (PrimeCell)
bus dynamically. This is modeled after the static definition
macros recently introduced into <linux/amba/bus.h> and can
help us in factoring out a bunch of code across the kernel.
Since a lot of call sites seem to be using a returned struct
amba device* pointer, let's use that.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/amba/bus.c
include/linux/amba/bus.h