projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8937563
)
Use __module_get(THIS_MODULE) instead of try_module_get(THIS_MODULE) as we
author
Ian Abbott
<abbotti@mev.co.uk>
Fri, 18 Apr 2008 13:47:38 +0000
(13:47 +0000)
committer
Ian Abbott
<abbotti@mev.co.uk>
Fri, 18 Apr 2008 13:47:38 +0000
(13:47 +0000)
know our own module is active.
comedi/comedi_fops.c
patch
|
blob
|
history
diff --git
a/comedi/comedi_fops.c
b/comedi/comedi_fops.c
index 0046540548b917bdd70509d5b56135ee56de082c..2e6f5885eb6f1eeaaee639002fc4aee7891e75a1 100644
(file)
--- a/
comedi/comedi_fops.c
+++ b/
comedi/comedi_fops.c
@@
-1778,10
+1778,7
@@
static int comedi_open(struct inode *inode, struct file *file)
return -ENODEV;
}
ok:
- if (!try_module_get(THIS_MODULE)) {
- mutex_unlock(&dev->mutex);
- return -ENOSYS;
- }
+ __module_get(THIS_MODULE);
if (dev->attached) {
if (!try_module_get(dev->driver->module)) {