Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8966110c authored by kbuild test robot's avatar kbuild test robot Committed by Greg Kroah-Hartman
Browse files

tty: serial: fix platform_no_drv_owner.cocci warnings



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@nxp.com>
Signed-off-by: default avatarkbuild test robot <lkp@intel.com>
Reviewed-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20190825142837.zt3hpa22c7iofg3v@48261080c7f1


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0e16feab
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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,
	},