Commit cc5f9bb0 authored by Stephane Grosjean's avatar Stephane Grosjean Committed by Marc Kleine-Budde

can: peak_canfd: use ndev irq instead of pci_dev one

This cosmetic change should facilitate in the future the use of MSI
rather than legacy INTx interrupts.
Signed-off-by: default avatarStephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent f6c740f5
...@@ -415,7 +415,7 @@ static int pciefd_pre_cmd(struct peak_canfd_priv *ucan) ...@@ -415,7 +415,7 @@ static int pciefd_pre_cmd(struct peak_canfd_priv *ucan)
break; break;
/* going into operational mode: setup IRQ handler */ /* going into operational mode: setup IRQ handler */
err = request_irq(priv->board->pci_dev->irq, err = request_irq(priv->ucan.ndev->irq,
pciefd_irq_handler, pciefd_irq_handler,
IRQF_SHARED, IRQF_SHARED,
PCIEFD_DRV_NAME, PCIEFD_DRV_NAME,
...@@ -496,7 +496,7 @@ static int pciefd_post_cmd(struct peak_canfd_priv *ucan) ...@@ -496,7 +496,7 @@ static int pciefd_post_cmd(struct peak_canfd_priv *ucan)
pciefd_can_writereg(priv, CANFD_CTL_IEN_BIT, pciefd_can_writereg(priv, CANFD_CTL_IEN_BIT,
PCIEFD_REG_CAN_RX_CTL_CLR); PCIEFD_REG_CAN_RX_CTL_CLR);
free_irq(priv->board->pci_dev->irq, priv); free_irq(priv->ucan.ndev->irq, priv);
ucan->can.state = CAN_STATE_STOPPED; ucan->can.state = CAN_STATE_STOPPED;
...@@ -688,7 +688,7 @@ static int pciefd_can_probe(struct pciefd_board *pciefd) ...@@ -688,7 +688,7 @@ static int pciefd_can_probe(struct pciefd_board *pciefd)
pciefd->can[pciefd->can_count] = priv; pciefd->can[pciefd->can_count] = priv;
dev_info(&pciefd->pci_dev->dev, "%s at reg_base=0x%p irq=%d\n", dev_info(&pciefd->pci_dev->dev, "%s at reg_base=0x%p irq=%d\n",
ndev->name, priv->reg_base, pciefd->pci_dev->irq); ndev->name, priv->reg_base, ndev->irq);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment