lkml.org 
[lkml]   [2016]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 8250: 8250_f81504: fix platform_no_drv_owner.cocci warnings
drivers/tty/serial/8250/8250_f81504.c:233:3-8: No need to set .owner here. The core will do it.

Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: Peter Hung <hpeter@gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

8250_f81504.c | 1 -
1 file changed, 1 deletion(-)

--- a/drivers/tty/serial/8250/8250_f81504.c
+++ b/drivers/tty/serial/8250/8250_f81504.c
@@ -230,7 +230,6 @@ static SIMPLE_DEV_PM_OPS(f81504_serial_p
static struct platform_driver f81504_serial_driver = {
.driver = {
.name = F81504_SERIAL_NAME,
- .owner = THIS_MODULE,
.pm = &f81504_serial_pm_ops,
},
.probe = f81504_serial_probe,
\
 
 \ /
  Last update: 2016-01-28 12:41    [W:0.146 / U:0.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site