usb: chipidea: fix platform_no_drv_owner.cocci warnings

Author: kbuild test robot <fengguang.wu@intel.com>

drivers/usb/chipidea/ci_hdrc_usb2.c:108: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

Cc: Antoine Tenart 
Cc: Peter Chen 
Signed-off-by: Fengguang Wu 
Signed-off-by: Greg Kroah-Hartman 
---
 drivers/usb/chipidea/ci_hdrc_usb2.c | 1 -
 1 file changed, 1 deletion(-)
 
diff --git a/drivers/usb/chipidea/ci_hdrc_usb2.c b/drivers/usb/chipidea/ci_hdrc_usb2.c
index 61d8e55..45844c9 100644
--- a/drivers/usb/chipidea/ci_hdrc_usb2.c
+++ b/drivers/usb/chipidea/ci_hdrc_usb2.c
@@ -105,7 +105,6 @@ static struct platform_driver ci_hdrc_usb2_driver = {
 	.remove	= ci_hdrc_usb2_remove,
 	.driver	= {
 		.name		= "chipidea-usb2",
-		.owner		= THIS_MODULE,
 		.of_match_table	= of_match_ptr(ci_hdrc_usb2_of_match),
 	},
 };
BtrLinux
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.