Commit 7790dc40 authored by Federico Vaga's avatar Federico Vaga

kernel: do not cleanup what should be already cleaned up

On spec driver remove, do not clean-up VIC stuff. The VIC should be cleaned
by the mezzanine driver when it release all its handlers (see patch f7ee35460).
Just leave a reminder for driver developer when something goes wrong.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 60dc7cd5
......@@ -453,12 +453,7 @@ static void spec_irq_exit(struct fmc_device *fmc)
gennum_writel(spec, 0, GNINT_CFG(i));
fmc->op->irq_ack(fmc); /* just to be safe */
/* VIC mode: release VIC resources and disable VIC master IRQ line */
if (spec->vic) {
spec_vic_cleanup(spec);
gennum_writel(spec, 0xffff, GNGPIO_INT_MASK_SET); /* disable */
free_irq(spec->pdev->irq, fmc);
}
WARN(spec->vic, "A Mezzanine driver didn't release all its IRQ handlers\n");
}
static int check_golden(struct fmc_device *fmc)
......
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