Commit 46d07c47 authored by Federico Vaga's avatar Federico Vaga

kernel: use only fmc helpers

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent d25a1ff9
......@@ -148,7 +148,7 @@ int ft_probe(struct fmc_device *fmc)
return -ENOMEM;
}
index = fmc->op->validate(fmc, &ft_drv);
index = fmc_validate(fmc, &ft_drv);
if (index < 0) {
dev_info(dev, "not using \"%s\" according to modparam\n",
KBUILD_MODNAME);
......
......@@ -321,7 +321,7 @@ irq:
goto irq;
/* Ack the FMC signal, we have finished */
fmc->op->irq_ack(fmc);
fmc_irq_ack(fmc);
return IRQ_HANDLED;
}
......@@ -342,7 +342,7 @@ int ft_irq_init(struct fmctdc_dev *ft)
/* fixme: vector table points to the bridge instead of
the core's base address */
ft->fmc->irq = ft->ft_irq_base;
ret = ft->fmc->op->irq_request(ft->fmc, ft_irq_handler, "fmc-tdc", 0);
ret = fmc_irq_request(ft->fmc, ft_irq_handler, "fmc-tdc", 0);
if (ret < 0) {
dev_err(&ft->fmc->dev, "Request interrupt failed: %d\n", ret);
......@@ -350,7 +350,7 @@ int ft_irq_init(struct fmctdc_dev *ft)
}
/* kick off the interrupts (fixme: possible issue with the HDL) */
ft->fmc->op->irq_ack(ft->fmc);
fmc_irq_ack(ft->fmc);
return 0;
}
......@@ -358,5 +358,5 @@ int ft_irq_init(struct fmctdc_dev *ft)
void ft_irq_exit(struct fmctdc_dev *ft)
{
fmc_writel(ft->fmc, ~0, ft->ft_irq_base + TDC_REG_EIC_IDR);
ft->fmc->op->irq_free(ft->fmc);
fmc_irq_free(ft->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