struct wilc_vif *vif = netdev_priv(dev);
struct wilc *wl = vif->wilc;
- if ((gpio_request(wl->gpio, "WILC_INTR") == 0) &&
- (gpio_direction_input(wl->gpio) == 0)) {
- wl->dev_irq_num = gpio_to_irq(wl->gpio);
+ if ((gpio_request(wl->gpio_irq, "WILC_INTR") == 0) &&
+ (gpio_direction_input(wl->gpio_irq) == 0)) {
+ wl->dev_irq_num = gpio_to_irq(wl->gpio_irq);
} else {
ret = -1;
netdev_err(dev, "could not obtain gpio for WILC_INTR\n");
isr_bh_routine,
IRQF_TRIGGER_LOW | IRQF_ONESHOT,
"WILC_IRQ", dev) < 0) {
- netdev_err(dev, "Failed to request IRQ GPIO: %d\n", wl->gpio);
- gpio_free(wl->gpio);
+ netdev_err(dev, "Failed to request IRQ GPIO: %d\n",
+ wl->gpio_irq);
+ gpio_free(wl->gpio_irq);
ret = -1;
} else {
netdev_dbg(dev,
"IRQ request succeeded IRQ-NUM= %d on GPIO: %d\n",
- wl->dev_irq_num, wl->gpio);
+ wl->dev_irq_num, wl->gpio_irq);
}
return ret;
/* Deinitialize IRQ */
if (wilc->dev_irq_num) {
free_irq(wilc->dev_irq_num, wilc);
- gpio_free(wilc->gpio);
+ gpio_free(wilc->gpio_irq);
}
}
goto fail_locks;
}
- if (wl->gpio >= 0 && init_irq(dev)) {
+ if (wl->gpio_irq >= 0 && init_irq(dev)) {
ret = -EIO;
goto fail_locks;
}