[MTD] Fix module refcounting in NAND board drivers.
[pandora-kernel.git] / drivers / mtd / nand / ppchameleonevb.c
index 405beec..5d4d16f 100644 (file)
@@ -221,6 +221,7 @@ static int __init ppchameleonevb_init(void)
 
        /* Link the private data with the MTD structure */
        ppchameleon_mtd->priv = this;
+       ppchameleon_mtd->owner = THIS_MODULE;
 
        /* Initialize GPIOs */
        /* Pin mapping for NAND chip */