git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[MTD] Fix module refcounting in NAND board drivers.
[pandora-kernel.git]
/
drivers
/
mtd
/
nand
/
toto.c
diff --git
a/drivers/mtd/nand/toto.c
b/drivers/mtd/nand/toto.c
index
e3a90e6
..
24cfa9e
100644
(file)
--- a/
drivers/mtd/nand/toto.c
+++ b/
drivers/mtd/nand/toto.c
@@
-137,6
+137,7
@@
int __init toto_init(void)
/* Link the private data with the MTD structure */
toto_mtd->priv = this;
+ toto_mtd->owner = THIS_MODULE;
/* Set address of NAND IO lines */
this->IO_ADDR_R = toto_io_base;