mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ARM: 6368/1: move the PrimeCell IDs to use macros
This make four macros for the PrimeCell ID register available to drivers that use them witout using the PrimeCell/AMBA bus abstraction and struct amba_device. It also moves the magic PrimeCell CID "B105F00D" to the bus.h header file. Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
2da6d64a63
commit
01723a9566
2 changed files with 12 additions and 5 deletions
|
|
@ -298,7 +298,7 @@ int amba_device_register(struct amba_device *dev, struct resource *parent)
|
|||
|
||||
amba_put_disable_pclk(dev);
|
||||
|
||||
if (cid == 0xb105f00d)
|
||||
if (cid == AMBA_CID)
|
||||
dev->periphid = pid;
|
||||
|
||||
if (!dev->periphid)
|
||||
|
|
|
|||
Loading…
Reference in a new issue