drivers: eth_e1000: Enable the correct IRQ for multi-instance

The code was always enabling DT INST 0 IRQ

Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
This commit is contained in:
Grant Ramsay 2023-08-07 15:15:58 +12:00 committed by Carles Cufí
parent 8b703cab8c
commit a6e1f89bda

View file

@ -338,7 +338,7 @@ static const struct ethernet_api e1000_api = {
e1000_isr, DEVICE_DT_INST_GET(inst), \
E1000_DT_INST_IRQ_FLAGS(inst)); \
\
irq_enable(DT_INST_IRQN(0)); \
irq_enable(DT_INST_IRQN(inst)); \
iow32(dev, CTRL, CTRL_SLU); /* Set link up */ \
iow32(dev, RCTL, RCTL_EN | RCTL_MPE); \
} \