projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mei: prevent unloading mei hw modules while the device is opened.
[linux-2.6-block.git]
/
drivers
/
misc
/
mei
/
main.c
diff --git
a/drivers/misc/mei/main.c
b/drivers/misc/mei/main.c
index 8eb0a9500a90626b5605025309b1abf53e2ee7cb..e9513d651cd36b611920a2f6410c905b344fbf13 100644
(file)
--- a/
drivers/misc/mei/main.c
+++ b/
drivers/misc/mei/main.c
@@
-682,7
+682,7
@@
int mei_register(struct mei_device *dev, struct device *parent)
/* Fill in the data structures */
devno = MKDEV(MAJOR(mei_devt), dev->minor);
cdev_init(&dev->cdev, &mei_fops);
- dev->cdev.owner =
mei_fops.
owner;
+ dev->cdev.owner =
parent->driver->
owner;
/* Add the device */
ret = cdev_add(&dev->cdev, devno, 1);