From: Daniel Scheller Date: Sat, 23 Jun 2018 15:36:00 +0000 (-0400) Subject: media: ddbridge: evaluate the actual link when setting up the dummy tuner X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ce2280fbe65f14ab13663e2174abe2575b977c32;p=linux.git media: ddbridge: evaluate the actual link when setting up the dummy tuner Devices supporting dummy tuner operation can exist on any link, not only on link 0, so fix this accordingly. Picked up from the upstream dddvb GIT. Signed-off-by: Daniel Scheller Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c index 3f83415b06c77..55eb151f329ed 100644 --- a/drivers/media/pci/ddbridge/ddbridge-core.c +++ b/drivers/media/pci/ddbridge/ddbridge-core.c @@ -1859,7 +1859,7 @@ static void ddb_port_probe(struct ddb_port *port) /* Handle missing ports and ports without I2C */ if (dummy_tuner && !port->nr && - dev->link[0].ids.device == 0x0005) { + dev->link[l].ids.device == 0x0005) { port->name = "DUMMY"; port->class = DDB_PORT_TUNER; port->type = DDB_TUNER_DUMMY;