Skip to content

Commit

Permalink
video/mx3fb: set .owner to prevent module unloading while being used
Browse files Browse the repository at this point in the history
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
  • Loading branch information
Uwe Kleine-König authored and Florian Tobias Schandinat committed Oct 10, 2012
1 parent 37414fb commit 4a0ea00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/video/mx3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4a0ea00

Please sign in to comment.