diff options
Diffstat (limited to 'drivers/isdn/hysdn/hysdn_proclog.c')
-rw-r--r-- | drivers/isdn/hysdn/hysdn_proclog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/isdn/hysdn/hysdn_proclog.c b/drivers/isdn/hysdn/hysdn_proclog.c index 27b3991fb0ec..8991d2c8ee4a 100644 --- a/drivers/isdn/hysdn/hysdn_proclog.c +++ b/drivers/isdn/hysdn/hysdn_proclog.c | |||
@@ -380,6 +380,7 @@ hysdn_log_poll(struct file *file, poll_table * wait) | |||
380 | /**************************************************/ | 380 | /**************************************************/ |
381 | static const struct file_operations log_fops = | 381 | static const struct file_operations log_fops = |
382 | { | 382 | { |
383 | .owner = THIS_MODULE, | ||
383 | .llseek = no_llseek, | 384 | .llseek = no_llseek, |
384 | .read = hysdn_log_read, | 385 | .read = hysdn_log_read, |
385 | .write = hysdn_log_write, | 386 | .write = hysdn_log_write, |
@@ -402,10 +403,9 @@ hysdn_proclog_init(hysdn_card * card) | |||
402 | 403 | ||
403 | if ((pd = kzalloc(sizeof(struct procdata), GFP_KERNEL)) != NULL) { | 404 | if ((pd = kzalloc(sizeof(struct procdata), GFP_KERNEL)) != NULL) { |
404 | sprintf(pd->log_name, "%s%d", PROC_LOG_BASENAME, card->myid); | 405 | sprintf(pd->log_name, "%s%d", PROC_LOG_BASENAME, card->myid); |
405 | if ((pd->log = create_proc_entry(pd->log_name, S_IFREG | S_IRUGO | S_IWUSR, hysdn_proc_entry)) != NULL) { | 406 | pd->log = proc_create(pd->log_name, |
406 | pd->log->proc_fops = &log_fops; | 407 | S_IFREG | S_IRUGO | S_IWUSR, hysdn_proc_entry, |
407 | pd->log->owner = THIS_MODULE; | 408 | &log_fops); |
408 | } | ||
409 | 409 | ||
410 | init_waitqueue_head(&(pd->rd_queue)); | 410 | init_waitqueue_head(&(pd->rd_queue)); |
411 | 411 | ||