Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1348890

[PATCH] usb: misc: fix platform_no_drv_owner.cocci warnings

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject [PATCH] usb: misc: fix platform_no_drv_owner.cocci warnings
Date 2016-03-03 09:20 +0100
Message-ID <r8wEl-4cL-69@gated-at.bofh.it> (permalink)
References <r8wEk-4cL-51@gated-at.bofh.it> <r8v5w-37I-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


drivers/usb/misc/intel-mux-gpio.c:111: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: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 intel-mux-gpio.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/usb/misc/intel-mux-gpio.c
+++ b/drivers/usb/misc/intel-mux-gpio.c
@@ -108,7 +108,6 @@ MODULE_DEVICE_TABLE(platform, vuport_pla
 static struct platform_driver vuport_driver = {
 	.driver = {
 		.name = "intel-mux-gpio",
-		.owner = THIS_MODULE,
 #ifdef CONFIG_PM_SLEEP
 		.pm = &vuport_pm_ops,
 #endif

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 4/7] usb: misc: add driver for Intel gpio controlled port mux Lu Baolu <baolu.lu@linux.intel.com> - 2016-03-03 07:40 +0100
  Re: [PATCH 4/7] usb: misc: add driver for Intel gpio controlled port  mux kbuild test robot <lkp@intel.com> - 2016-03-03 09:20 +0100
  [PATCH] usb: misc: fix platform_no_drv_owner.cocci warnings kbuild test robot <lkp@intel.com> - 2016-03-03 09:20 +0100

csiph-web