Thread (11 messages) 11 messages, 4 authors, 2014-10-24
STALE4266d

[PATCH 3/3] media: st-rc: Remove .owner field for driver

From: Srinivas Kandagatla <hidden>
Date: 2014-09-22 22:22:56
Also in: linux-media, lkml
Subsystem: arm/sti architecture, media input infrastructure (v4l/dvb), rc-core / lirc framework, the rest · Maintainers: Patrice Chotard, Mauro Carvalho Chehab, Sean Young, Linus Torvalds

There is no need to init .owner field.

Based on the patch from Peter Griffin [off-list ref]
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Srinivas Kandagatla <redacted>
---
 drivers/media/rc/st_rc.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/drivers/media/rc/st_rc.c b/drivers/media/rc/st_rc.c
index 03bbb09..e309441 100644
--- a/drivers/media/rc/st_rc.c
+++ b/drivers/media/rc/st_rc.c
@@ -392,7 +392,6 @@ MODULE_DEVICE_TABLE(of, st_rc_match);
 static struct platform_driver st_rc_driver = {
 	.driver = {
 		.name = IR_ST_NAME,
-		.owner	= THIS_MODULE,
 		.of_match_table = of_match_ptr(st_rc_match),
 		.pm     = &st_rc_pm_ops,
 	},
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help