aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/telephony/ixj.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/telephony/ixj.c')
-rw-r--r--drivers/telephony/ixj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/telephony/ixj.c b/drivers/telephony/ixj.c
index 0d236f4bb8c..b00101972f2 100644
--- a/drivers/telephony/ixj.c
+++ b/drivers/telephony/ixj.c
@@ -284,12 +284,11 @@ static int samplerate = 100;
284 284
285module_param(ixjdebug, int, 0); 285module_param(ixjdebug, int, 0);
286 286
287static struct pci_device_id ixj_pci_tbl[] __devinitdata = { 287static DEFINE_PCI_DEVICE_TABLE(ixj_pci_tbl) = {
288 { PCI_VENDOR_ID_QUICKNET, PCI_DEVICE_ID_QUICKNET_XJ, 288 { PCI_VENDOR_ID_QUICKNET, PCI_DEVICE_ID_QUICKNET_XJ,
289 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 289 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
290 { } 290 { }
291}; 291};
292
293MODULE_DEVICE_TABLE(pci, ixj_pci_tbl); 292MODULE_DEVICE_TABLE(pci, ixj_pci_tbl);
294 293
295/************************************************************************ 294/************************************************************************
@@ -6581,7 +6580,8 @@ static long do_ixj_ioctl(struct file *file_p, unsigned int cmd, unsigned long ar
6581 case IXJCTL_SET_FILTER: 6580 case IXJCTL_SET_FILTER:
6582 if (copy_from_user(&jf, argp, sizeof(jf))) 6581 if (copy_from_user(&jf, argp, sizeof(jf)))
6583 retval = -EFAULT; 6582 retval = -EFAULT;
6584 retval = ixj_init_filter(j, &jf); 6583 else
6584 retval = ixj_init_filter(j, &jf);
6585 break; 6585 break;
6586 case IXJCTL_SET_FILTER_RAW: 6586 case IXJCTL_SET_FILTER_RAW:
6587 if (copy_from_user(&jfr, argp, sizeof(jfr))) 6587 if (copy_from_user(&jfr, argp, sizeof(jfr)))