{
int i;
- for (i = 0; i < MAX_EIU; i++) {
+ for (i = 0; i < exin_avail; i++) {
if (d->hwirq == ltq_eiu_irq[i]) {
int val = 0;
int edge = 0;
int i;
ltq_enable_irq(d);
- for (i = 0; i < MAX_EIU; i++) {
+ for (i = 0; i < exin_avail; i++) {
if (d->hwirq == ltq_eiu_irq[i]) {
/* by default we are low level triggered */
ltq_eiu_settype(d, IRQF_TRIGGER_LOW);
int i;
ltq_disable_irq(d);
- for (i = 0; i < MAX_EIU; i++) {
+ for (i = 0; i < exin_avail; i++) {
if (d->hwirq == ltq_eiu_irq[i]) {
/* disable */
ltq_eiu_w32(ltq_eiu_r32(LTQ_EIU_EXIN_INEN) & ~BIT(i),