mtd: mxc_nand: set owner field to prevent module unloading when in use
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 23 Apr 2012 09:23:33 +0000 (11:23 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 14 May 2012 03:57:02 +0000 (22:57 -0500)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/mxc_nand.c

index cc0678a967c12c6b054d21ee3fe5b868ee997924..7d82cc44cb261bc9e76e1a42431a8e84ed3bbe77 100644 (file)
@@ -1275,6 +1275,7 @@ static int __devexit mxcnd_remove(struct platform_device *pdev)
 static struct platform_driver mxcnd_driver = {
        .driver = {
                   .name = DRIVER_NAME,
+                  .owner = THIS_MODULE,
        },
        .remove = __devexit_p(mxcnd_remove),
 };