From 9c59f968a9960bbb3402c8a8ea8004c798f4f383 Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Mon, 19 May 2008 18:57:12 -0300 Subject: [PATCH] V4L/DVB (8259): sms1xxx: pass adapter_nr into dvb_register_adapter Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab --- drivers/media/mdtv/smsdvb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/mdtv/smsdvb.c b/drivers/media/mdtv/smsdvb.c index f2ed1718d180..ecba51c8b65b 100644 --- a/drivers/media/mdtv/smsdvb.c +++ b/drivers/media/mdtv/smsdvb.c @@ -10,6 +10,8 @@ #include "smscoreapi.h" #include "smstypes.h" +DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); + typedef struct _smsdvb_client { struct list_head entry; @@ -314,7 +316,7 @@ int smsdvb_hotplug(smscore_device_t *coredev, struct device* device, int arrival } // register dvb adapter - rc = dvb_register_adapter(&client->adapter, "Siano Digital Receiver", THIS_MODULE, device); + rc = dvb_register_adapter(&client->adapter, "Siano Digital Receiver", THIS_MODULE, device, adapter_nr); if (rc < 0) { printk("%s dvb_register_adapter() failed %d\n", __func__, rc); -- 2.20.1