mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ARM: spear: use common irqchip_init function
Convert spear DT irq initialization over to use common irqchip_init function. Signed-off-by: Rob Herring <[email protected]> Cc: Viresh Kumar <[email protected]> Cc: Shiraz Hashim <[email protected]> Cc: Rajeev Kumar <[email protected]>
This commit is contained in:
parent
44430ec068
commit
e9c515589d
7 changed files with 13 additions and 33 deletions
|
|
@ -25,6 +25,8 @@
|
|||
#include <linux/of_irq.h>
|
||||
#include <linux/spinlock.h>
|
||||
|
||||
#include "irqchip.h"
|
||||
|
||||
static DEFINE_SPINLOCK(lock);
|
||||
|
||||
/* spear300 shared irq registers offsets and masks */
|
||||
|
|
@ -300,6 +302,7 @@ int __init spear300_shirq_of_init(struct device_node *np,
|
|||
return shirq_init(spear300_shirq_blocks,
|
||||
ARRAY_SIZE(spear300_shirq_blocks), np);
|
||||
}
|
||||
IRQCHIP_DECLARE(spear300_shirq, "st,spear300-shirq", spear300_shirq_of_init);
|
||||
|
||||
int __init spear310_shirq_of_init(struct device_node *np,
|
||||
struct device_node *parent)
|
||||
|
|
@ -307,6 +310,7 @@ int __init spear310_shirq_of_init(struct device_node *np,
|
|||
return shirq_init(spear310_shirq_blocks,
|
||||
ARRAY_SIZE(spear310_shirq_blocks), np);
|
||||
}
|
||||
IRQCHIP_DECLARE(spear310_shirq, "st,spear310-shirq", spear310_shirq_of_init);
|
||||
|
||||
int __init spear320_shirq_of_init(struct device_node *np,
|
||||
struct device_node *parent)
|
||||
|
|
@ -314,3 +318,4 @@ int __init spear320_shirq_of_init(struct device_node *np,
|
|||
return shirq_init(spear320_shirq_blocks,
|
||||
ARRAY_SIZE(spear320_shirq_blocks), np);
|
||||
}
|
||||
IRQCHIP_DECLARE(spear320_shirq, "st,spear320-shirq", spear320_shirq_of_init);
|
||||
|
|
|
|||
Loading…
Reference in a new issue