patch-2.4.0-test2 linux/drivers/telephony/ixj.c
Next file: linux/drivers/telephony/phonedev.c
Previous file: linux/drivers/sound/ymf_sb.c
Back to the patch index
Back to the overall index
- Lines: 110
- Date:
Wed Jun 21 10:10:02 2000
- Orig file:
v2.4.0-test1/linux/drivers/telephony/ixj.c
- Orig date:
Tue Mar 14 19:10:40 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/telephony/ixj.c linux/drivers/telephony/ixj.c
@@ -446,8 +446,7 @@
{
j->m_hook = 0;
j->ex.bits.hookstate = 1;
- if (j->async_queue)
- kill_fasync(j->async_queue, SIGIO, POLL_IN); // Send apps notice of change
+ kill_fasync(&j->async_queue, SIGIO, POLL_IN); // Send apps notice of change
}
goto timer_end;
}
@@ -536,8 +535,7 @@
j->proc_load = j->ssr.high << 8 | j->ssr.low;
if (!j->m_hook) {
j->m_hook = j->ex.bits.hookstate = 1;
- if (j->async_queue)
- kill_fasync(j->async_queue, SIGIO, POLL_IN); // Send apps notice of change
+ kill_fasync(&j->async_queue, SIGIO, POLL_IN); // Send apps notice of change
}
} else {
if (j->dsp.low == 0x21 &&
@@ -552,8 +550,7 @@
if (j->m_hook) {
j->m_hook = 0;
j->ex.bits.hookstate = 1;
- if (j->async_queue)
- kill_fasync(j->async_queue, SIGIO, POLL_IN); // Send apps notice of change
+ kill_fasync(&j->async_queue, SIGIO, POLL_IN); // Send apps notice of change
}
}
}
@@ -642,8 +639,7 @@
}
if (j->ex.bytes) {
wake_up_interruptible(&j->poll_q); // Wake any blocked selects
- if (j->async_queue)
- kill_fasync(j->async_queue, SIGIO, POLL_IN); // Send apps notice of change
+ kill_fasync(&j->async_queue, SIGIO, POLL_IN); // Send apps notice of change
}
} else {
break;
@@ -917,8 +913,7 @@
j->r_hook = fOffHook;
if (j->port != PORT_POTS) {
j->ex.bits.hookstate = 1;
- if (j->async_queue)
- kill_fasync(j->async_queue, SIGIO, POLL_IN); // Send apps notice of change
+ kill_fasync(&j->async_queue, SIGIO, POLL_IN); // Send apps notice of change
}
}
@@ -1045,8 +1040,6 @@
if (file_p->f_mode & FMODE_WRITE)
j->writers++;
- MOD_INC_USE_COUNT;
-
if (ixjdebug > 0)
// printk(KERN_INFO "Opening board %d\n", NUM(inode->i_rdev));
printk(KERN_INFO "Opening board %d\n", p->board);
@@ -1196,7 +1189,6 @@
j->rec_frame_size = j->play_frame_size = 0;
ixj_fasync(-1, file_p, 0); // remove from list of async notification
- MOD_DEC_USE_COUNT;
return 0;
}
@@ -1471,8 +1463,7 @@
wake_up_interruptible(&j->poll_q); // Wake any blocked selects
- if (j->async_queue)
- kill_fasync(j->async_queue, SIGIO, POLL_IN); // Send apps notice of frame
+ kill_fasync(&j->async_queue, SIGIO, POLL_IN); // Send apps notice of frame
}
}
@@ -1557,8 +1548,7 @@
wake_up_interruptible(&j->poll_q); // Wake any blocked selects
- if (j->async_queue)
- kill_fasync(j->async_queue, SIGIO, POLL_IN); // Send apps notice of empty buffer
+ kill_fasync(&j->async_queue, SIGIO, POLL_IN); // Send apps notice of empty buffer
#ifdef PERFMON_STATS
++j->frameswritten;
#endif
@@ -3949,6 +3939,7 @@
struct file_operations ixj_fops =
{
+ owner: THIS_MODULE,
read: ixj_enhanced_read,
write: ixj_enhanced_write,
poll: ixj_poll,
@@ -4615,10 +4606,12 @@
pci = pci_find_device(0x15E2, 0x0500, pci);
if (!pci)
break;
+ if (pci_enable_device(pci))
+ break;
{
- ixj[cnt].DSPbase = pci->resource[0].start;
+ ixj[cnt].DSPbase = pci_resource_start(pci, 0);
ixj[cnt].XILINXbase = ixj[cnt].DSPbase + 0x10;
- ixj[cnt].serial = PCIEE_GetSerialNumber(pci->resource[2].start);
+ ixj[cnt].serial = (PCIEE_GetSerialNumber)pci_resource_start(pci, 2);
result = check_region(ixj[cnt].DSPbase, 16);
if (result) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)