[PATCH] tty: serial: fix platform_no_drv_owner.cocci warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: kbuild test robot <lkp@xxxxxxxxx>

drivers/tty/serial/fsl_linflexuart.c:907: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

Fixes: b953815b819b ("tty: serial: Add linflexuart driver for S32V234")
CC: Stefan-gabriel Mirea <stefan-gabriel.mirea@xxxxxxx>
Signed-off-by: kbuild test robot <lkp@xxxxxxxxx>
---

tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/gregkh/tty.git tty-next
head:   591f4ea2ed6128de397ff8f2dee6ed009db38174
commit: b953815b819b0f327b5538feba3639d52db70172 [84/95] tty: serial: Add linflexuart driver for S32V234

 fsl_linflexuart.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/tty/serial/fsl_linflexuart.c
+++ b/drivers/tty/serial/fsl_linflexuart.c
@@ -904,7 +904,6 @@ static struct platform_driver linflex_dr
 	.remove		= linflex_remove,
 	.driver		= {
 		.name	= DRIVER_NAME,
-		.owner	= THIS_MODULE,
 		.of_match_table	= linflex_dt_ids,
 		.pm	= &linflex_pm_ops,
 	},



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux