From 096bf9d5a9378da959e12c86c9a9c79f7fba8da1 Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Mon, 11 Dec 2017 16:12:23 +0100 Subject: [PATCH] assignment used 0 instead of link from argument --- ddbridge/ddbridge-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddbridge/ddbridge-core.c b/ddbridge/ddbridge-core.c index 786388c..bfbd7c1 100644 --- a/ddbridge/ddbridge-core.c +++ b/ddbridge/ddbridge-core.c @@ -95,7 +95,7 @@ DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); struct ddb_irq *ddb_irq_set(struct ddb *dev, u32 link, u32 nr, void (*handler)(void *), void *data) { - struct ddb_irq *irq = &dev->link[0].irq[nr]; + struct ddb_irq *irq = &dev->link[link].irq[nr]; irq->handler = handler; irq->data = data;