diff mbox series

usb: host: fix platform_no_drv_owner.cocci warnings

Message ID 20181110054846.GA16550@lkp-hsx03 (mailing list archive)
State New, archived
Headers show
Series usb: host: fix platform_no_drv_owner.cocci warnings | expand

Commit Message

Fengguang Wu Nov. 10, 2018, 5:48 a.m. UTC
From: kbuild test robot <fengguang.wu@intel.com>

drivers/usb/host/ehci-brcm.c:258: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: 51b4c79a49f1 ("usb: host: Add ability to build new Broadcom STB USB drivers")
CC: Al Cooper <alcooperx@gmail.com>
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
---

url:    https://github.com/0day-ci/linux/commits/Al-Cooper/Add-XHCI-EHCI-and-OHCI-support-for-Broadcom-STB-SoS-s/20181110-065441
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing

 ehci-brcm.c |    1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

--- a/drivers/usb/host/ehci-brcm.c
+++ b/drivers/usb/host/ehci-brcm.c
@@ -255,7 +255,6 @@  static struct platform_driver ehci_brcm_
 	.remove		= ehci_brcm_remove,
 	.shutdown	= usb_hcd_platform_shutdown,
 	.driver		= {
-		.owner	= THIS_MODULE,
 		.name	= "ehci-brcm",
 		.pm	= &ehci_brcm_pm_ops,
 		.of_match_table = brcm_ehci_of_match,