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


Groups > linux.kernel > #1305136

[PATCH] fix platform_no_drv_owner.cocci warnings

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject [PATCH] fix platform_no_drv_owner.cocci warnings
Date 2016-01-09 03:10 +0100
Message-ID <qOR8B-78i-3@gated-at.bofh.it> (permalink)
References <qOR8B-78i-5@gated-at.bofh.it> <qONHI-4JZ-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


drivers/watchdog/imanager-wdt.c:322: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: Richard Vidal-Dorsch <richard.dorsch@gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 imanager-wdt.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/watchdog/imanager-wdt.c
+++ b/drivers/watchdog/imanager-wdt.c
@@ -319,7 +319,6 @@ static int imanager_wdt_remove(struct pl
 
 static struct platform_driver imanager_wdt_driver = {
 	.driver = {
-		.owner	= THIS_MODULE,
 		.name	= "imanager_wdt",
 	},
 	.probe	= imanager_wdt_probe,

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


Thread

[PATCH 0/6] Add Advantech iManager EC driver set richard.dorsch@gmail.com - 2016-01-08 23:30 +0100
  [PATCH 2/6] Add Advantech iManager GPIO driver richard.dorsch@gmail.com - 2016-01-08 23:30 +0100
    [PATCH] fix platform_no_drv_owner.cocci warnings kbuild test robot <lkp@intel.com> - 2016-01-09 02:00 +0100
    Re: [PATCH 2/6] Add Advantech iManager GPIO driver kbuild test robot <lkp@intel.com> - 2016-01-09 02:00 +0100
      [PATCH 7/8] Remove .owner from platform_driver struct richard.dorsch@gmail.com - 2016-01-10 08:50 +0100
  [PATCH 6/6] Add Advantech iManager Watchdog driver richard.dorsch@gmail.com - 2016-01-08 23:30 +0100
    [PATCH] fix platform_no_drv_owner.cocci warnings kbuild test robot <lkp@intel.com> - 2016-01-09 03:10 +0100
    Re: [PATCH 6/6] Add Advantech iManager Watchdog driver kbuild test robot <lkp@intel.com> - 2016-01-09 03:10 +0100
      [PATCH 8/8] Remove .owner from platform_driver struct richard.dorsch@gmail.com - 2016-01-10 08:50 +0100
  [PATCH 5/6] Add Advantech iManager Backlight driver richard.dorsch@gmail.com - 2016-01-08 23:40 +0100
  [PATCH 4/6] Add Advantech iManager I2C driver richard.dorsch@gmail.com - 2016-01-08 23:40 +0100

csiph-web