V4L/DVB (8259): sms1xxx: pass adapter_nr into dvb_register_adapter
authorMichael Krufky <mkrufky@linuxtv.org>
Mon, 19 May 2008 21:57:12 +0000 (18:57 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 20 Jul 2008 10:19:39 +0000 (07:19 -0300)
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/mdtv/smsdvb.c

index f2ed1718d18048dc78d4e7a51787c0fd69f0169d..ecba51c8b65b26dd538d2faa99df1dc370d751c4 100644 (file)
@@ -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);