Commit 9c59f968 authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab

V4L/DVB (8259): sms1xxx: pass adapter_nr into dvb_register_adapter

Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 2e5c1ec8
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#include "smscoreapi.h" #include "smscoreapi.h"
#include "smstypes.h" #include "smstypes.h"
DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
typedef struct _smsdvb_client typedef struct _smsdvb_client
{ {
struct list_head entry; struct list_head entry;
...@@ -314,7 +316,7 @@ int smsdvb_hotplug(smscore_device_t *coredev, struct device* device, int arrival ...@@ -314,7 +316,7 @@ int smsdvb_hotplug(smscore_device_t *coredev, struct device* device, int arrival
} }
// register dvb adapter // 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) if (rc < 0)
{ {
printk("%s dvb_register_adapter() failed %d\n", __func__, rc); printk("%s dvb_register_adapter() failed %d\n", __func__, rc);
......
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