diff mbox

drm/bridge: fix platform_no_drv_owner.cocci warnings

Message ID 20150821110539.GA153903@ivytown2 (mailing list archive)
State New, archived
Headers show

Commit Message

Fengguang Wu Aug. 21, 2015, 11:05 a.m. UTC
drivers/gpu/drm/bridge/parade-ps8622.c:671: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 <fengguang.wu@intel.com>
---

 parade-ps8622.c |    1 -
 1 file changed, 1 deletion(-)

Comments

Thierry Reding Sept. 4, 2015, 9:43 a.m. UTC | #1
On Fri, Aug 21, 2015 at 07:05:39PM +0800, kbuild test robot wrote:
> drivers/gpu/drm/bridge/parade-ps8622.c:671: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 <fengguang.wu@intel.com>
> ---
> 
>  parade-ps8622.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> --- a/drivers/gpu/drm/bridge/parade-ps8622.c
> +++ b/drivers/gpu/drm/bridge/parade-ps8622.c
> @@ -668,7 +668,6 @@ static struct i2c_driver ps8622_driver =
>  	.remove		= ps8622_remove,
>  	.driver		= {
>  		.name	= "ps8622",
> -		.owner	= THIS_MODULE,
>  		.of_match_table = ps8622_devices,
>  	},
>  };

Applied with a slightly reworded commit message.

Thanks,
Thierry
diff mbox

Patch

--- a/drivers/gpu/drm/bridge/parade-ps8622.c
+++ b/drivers/gpu/drm/bridge/parade-ps8622.c
@@ -668,7 +668,6 @@  static struct i2c_driver ps8622_driver =
 	.remove		= ps8622_remove,
 	.driver		= {
 		.name	= "ps8622",
-		.owner	= THIS_MODULE,
 		.of_match_table = ps8622_devices,
 	},
 };