From: kbuild test robot Date: Wed, 1 Mar 2017 22:16:07 +0000 (+0000) Subject: staging/atomisp: fix platform_no_drv_owner.cocci warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a24d389323b51f2f7c79c0db791ea7423f1f6d49;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging/atomisp: fix platform_no_drv_owner.cocci warnings drivers/staging/media/atomisp/i2c/mt9m114.c:1946: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 Signed-off-by: Fengguang Wu Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/media/atomisp/i2c/mt9m114.c b/drivers/staging/media/atomisp/i2c/mt9m114.c index 16630f201202..669b123d621e 100644 --- a/drivers/staging/media/atomisp/i2c/mt9m114.c +++ b/drivers/staging/media/atomisp/i2c/mt9m114.c @@ -1943,7 +1943,6 @@ MODULE_DEVICE_TABLE(acpi, mt9m114_acpi_match); static struct i2c_driver mt9m114_driver = { .driver = { - .owner = THIS_MODULE, .name = "mt9m114", .acpi_match_table = ACPI_PTR(mt9m114_acpi_match), },