From 8966110c56459d3d0cf3bded77a92988063b0842 Mon Sep 17 00:00:00 2001 From: kbuild test robot Date: Sun, 25 Aug 2019 22:28:37 +0800 Subject: [PATCH] tty: serial: fix platform_no_drv_owner.cocci warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: kbuild test robot Reviewed-by: Uwe Kleine-König Link: https://lore.kernel.org/r/20190825142837.zt3hpa22c7iofg3v@48261080c7f1 Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/fsl_linflexuart.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/tty/serial/fsl_linflexuart.c b/drivers/tty/serial/fsl_linflexuart.c index 9ed97614a941..68d74f2b5106 100644 --- a/drivers/tty/serial/fsl_linflexuart.c +++ b/drivers/tty/serial/fsl_linflexuart.c @@ -904,7 +904,6 @@ static struct platform_driver linflex_driver = { .remove = linflex_remove, .driver = { .name = DRIVER_NAME, - .owner = THIS_MODULE, .of_match_table = linflex_dt_ids, .pm = &linflex_pm_ops, },