Skip to content

Commit

Permalink
tty: serial: fix platform_no_drv_owner.cocci warnings
Browse files Browse the repository at this point in the history
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: b953815 ("tty: serial: Add linflexuart driver for S32V234")
CC: Stefan-gabriel Mirea <stefan-gabriel.mirea@nxp.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20190825142837.zt3hpa22c7iofg3v@48261080c7f1
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
kbuild test robot authored and Greg Kroah-Hartman committed Sep 4, 2019
1 parent 0e16fea commit 8966110
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/tty/serial/fsl_linflexuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 8966110

Please sign in to comment.