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:
Katsuhiro Suzuki 2020-12-16 01:12:40 +09:00 committed by Anas Nashif
commit 586fa78ea3
2 changed files with 2 additions and 134 deletions

View file

@ -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);