summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2012-10-05 13:20:07 +0400
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-10-10 06:06:51 +0400
commit4a0ea00798a5b4b32e1167d09a84df793d518576 (patch)
tree69795bb1fbdad351fb026119ec3e3236c2af25af
parent37414fbe5abbd2c09d9a447010406b3781549094 (diff)
downloadlinux-4a0ea00798a5b4b32e1167d09a84df793d518576.tar.xz
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>
-rw-r--r--drivers/video/mx3fb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
index c89f8a8d36d2..c63ddb11e050 100644
--- a/drivers/video/mx3fb.c
+++ b/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,