aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/fusion/mptctl.c')
-rw-r--r--drivers/message/fusion/mptctl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c
index 1dcc13a52c7e..878bda0cce70 100644
--- a/drivers/message/fusion/mptctl.c
+++ b/drivers/message/fusion/mptctl.c
@@ -597,6 +597,13 @@ mptctl_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply)
597} 597}
598 598
599static int 599static int
600mptctl_release(struct inode *inode, struct file *filep)
601{
602 fasync_helper(-1, filep, 0, &async_queue);
603 return 0;
604}
605
606static int
600mptctl_fasync(int fd, struct file *filep, int mode) 607mptctl_fasync(int fd, struct file *filep, int mode)
601{ 608{
602 MPT_ADAPTER *ioc; 609 MPT_ADAPTER *ioc;
@@ -2817,6 +2824,7 @@ static const struct file_operations mptctl_fops = {
2817 .llseek = no_llseek, 2824 .llseek = no_llseek,
2818 .fasync = mptctl_fasync, 2825 .fasync = mptctl_fasync,
2819 .unlocked_ioctl = mptctl_ioctl, 2826 .unlocked_ioctl = mptctl_ioctl,
2827 .release = mptctl_release,
2820#ifdef CONFIG_COMPAT 2828#ifdef CONFIG_COMPAT
2821 .compat_ioctl = compat_mpctl_ioctl, 2829 .compat_ioctl = compat_mpctl_ioctl,
2822#endif 2830#endif