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

Subsystems: framebuffer layer, the rest

STALE5045d

2 messages, 2 authors, 2012-10-10 · open the first message on its own page

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

From: Uwe Kleine-König <hidden>
Date: 2012-10-05 09:20:07

Signed-off-by: Uwe Kleine-König <redacted>
---
 drivers/video/mx3fb.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
index d738108..ce1d452 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,
-- 
1.7.10.4

Re: [PATCH] video/mx3fb: set .owner to prevent module unloading while being used

From: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Date: 2012-10-10 12:35:32

On 10/05/2012 09:20 AM, Uwe Kleine-König wrote:
Signed-off-by: Uwe Kleine-König <redacted>
Applied.


Thanks,

Florian Tobias Schandinat

quoted hunk
---
 drivers/video/mx3fb.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
index d738108..ce1d452 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,

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help