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

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
Michael Krufky 2008-05-19 18:57:12 -03:00 committed by Mauro Carvalho Chehab
parent 2e5c1ec886
commit 9c59f968a9
1 changed files with 3 additions and 1 deletions

View 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);