Browse Source

video/mx3fb: set .owner to prevent module unloading while being used

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Uwe Kleine-König 13 years ago
parent
commit
4a0ea00798
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/video/mx3fb.c

+ 2 - 1
drivers/video/mx3fb.c

@@ -1568,7 +1568,8 @@ static int mx3fb_remove(struct platform_device *dev)
 
 static struct platform_driver mx3fb_driver = {
 	.driver = {
-		   .name = MX3FB_NAME,
+		.name = MX3FB_NAME,
+		.owner = THIS_MODULE,
 	},
 	.probe = mx3fb_probe,
 	.remove = mx3fb_remove,