[PATCH] media: staging/imx7: fix platform_no_drv_owner.cocci warnings

kbuild test robot fengguang.wu at intel.com
Wed Nov 21 22:54:14 UTC 2018

From: kbuild test robot <fengguang.wu at intel.com>

drivers/staging/media/imx/imx7-mipi-csis.c:1125: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: 181331ab8acb ("media: staging/imx7: add MIPI CSI-2 receiver subdev for i.MX7")
CC: Rui Miguel Silva <rui.silva at linaro.org>
Signed-off-by: kbuild test robot <fengguang.wu at intel.com>

url:    https://github.com/0day-ci/linux/commits/Rui-Miguel-Silva/media-staging-imx7-add-i-MX7-media-driver/20181122-024200
base:   git://linuxtv.org/media_tree.git master

 imx7-mipi-csis.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/staging/media/imx/imx7-mipi-csis.c
+++ b/drivers/staging/media/imx/imx7-mipi-csis.c
@@ -1122,7 +1122,6 @@ static struct platform_driver mipi_csis_
 	.driver		= {
 		.of_match_table = mipi_csis_of_match,
 		.name		= CSIS_DRIVER_NAME,
-		.owner		= THIS_MODULE,
 		.pm		= &mipi_csis_pm_ops,

More information about the devel mailing list