drivers: gpio: sifive: use interrupt-cell to set IRQ priority
This patch replace CONFIG_GPIO_SIFIVE_N_PRIORITY into interrupt-cell of device-tree to set IRQ priority. Signed-off-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>
This commit is contained in:
parent
eb86d1eec1
commit
586fa78ea3
2 changed files with 2 additions and 134 deletions
|
@ -366,7 +366,7 @@ DEVICE_DT_INST_DEFINE(0,
|
|||
|
||||
#define IRQ_INIT(n) \
|
||||
IRQ_CONNECT(DT_INST_IRQ_BY_IDX(0, n, irq), \
|
||||
CONFIG_GPIO_SIFIVE_##n##_PRIORITY, \
|
||||
DT_INST_IRQ_BY_IDX(0, n, priority), \
|
||||
gpio_sifive_irq_handler, \
|
||||
DEVICE_DT_INST_GET(0), \
|
||||
0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue