Commit 8b590933 authored by Federico Vaga's avatar Federico Vaga

kernel: release IRQs according to VIC notation

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent e44f6120
......@@ -439,8 +439,12 @@ int fa_free_irqs(struct fa_dev *fa)
{
struct fmc_device *fmc = fa->fmc;
/* Release carrier IRQs (if any) */
if (fa->carrier_op->free_irqs)
fa->carrier_op->free_irqs(fa);
/* Release ADC IRQs */
fmc->irq = fa->fa_irq_adc_base;
fmc->op->irq_free(fmc);
return 0;
......
......@@ -146,6 +146,10 @@ static int fa_spec_free_irqs(struct fa_dev *fa)
{
struct fmc_device *fmc = fa->fmc;
/* Release DMA IRQs */
fmc->irq = fa->fa_irq_adc_base;
fmc->op->irq_free(fmc);
fmc->op->gpio_config(fmc, fa_gpio_off, ARRAY_SIZE(fa_gpio_off));
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