tdc: adapt to latest spec-sw's master branch changes

Signed-off-by: Samuel Iglesias Gonsálvez's avatarSamuel Iglesias Gonsalvez <siglesias@igalia.com>
parent 701fc923
...@@ -203,7 +203,7 @@ irqreturn_t tdc_fmc_irq_handler(int irq, void *dev_id) ...@@ -203,7 +203,7 @@ irqreturn_t tdc_fmc_irq_handler(int irq, void *dev_id)
{ {
struct fmc_device *fmc = dev_id; struct fmc_device *fmc = dev_id;
struct spec_dev *spec = fmc->carrier_data; struct spec_dev *spec = fmc->carrier_data;
struct spec_tdc *tdc = spec->sub_priv; struct spec_tdc *tdc = fmc->mezzanine_data;
u32 irq_code; u32 irq_code;
/* Check the source of the interrupt */ /* Check the source of the interrupt */
...@@ -288,7 +288,7 @@ int tdc_fmc_probe(struct fmc_device *dev) ...@@ -288,7 +288,7 @@ int tdc_fmc_probe(struct fmc_device *dev)
/* Initialize structures */ /* Initialize structures */
spec = dev->carrier_data; spec = dev->carrier_data;
tdc->spec = spec; tdc->spec = spec;
spec->sub_priv = tdc; dev->mezzanine_data = tdc;
tdc->lun = dev_lun; tdc->lun = dev_lun;
tdc->fmc = dev; tdc->fmc = dev;
tdc->base = dev->base; /* BAR 0 */ tdc->base = dev->base; /* BAR 0 */
...@@ -328,8 +328,7 @@ int tdc_fmc_probe(struct fmc_device *dev) ...@@ -328,8 +328,7 @@ int tdc_fmc_probe(struct fmc_device *dev)
int tdc_fmc_remove(struct fmc_device *dev) int tdc_fmc_remove(struct fmc_device *dev)
{ {
struct spec_dev *spec = dev->carrier_data; struct spec_tdc *tdc = dev->mezzanine_data;
struct spec_tdc *tdc = spec->sub_priv;
cancel_work_sync(&tdc->irq_work); cancel_work_sync(&tdc->irq_work);
tdc->fmc->op->irq_free(tdc->fmc); tdc->fmc->op->irq_free(tdc->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