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


Groups > linux.kernel > #1350308

[PATCH] spi: spi-pic32: fix platform_no_drv_owner.cocci warnings

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject [PATCH] spi: spi-pic32: fix platform_no_drv_owner.cocci warnings
Date 2016-03-04 16:30 +0100
Message-ID <r8ZPY-bV-7@gated-at.bofh.it> (permalink)
References <r8ZPY-bV-9@gated-at.bofh.it> <r8Yhc-7x8-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


drivers/spi/spi-pic32.c:993: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: Purna Chandra Mandal <purna.mandal@microchip.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 spi-pic32.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/spi/spi-pic32.c
+++ b/drivers/spi/spi-pic32.c
@@ -990,7 +990,6 @@ MODULE_DEVICE_TABLE(of, pic32_spi_of_mat
 static struct platform_driver pic32_spi_driver = {
 	.driver = {
 		.name = "spi-pic32",
-		.owner = THIS_MODULE,
 		.of_match_table = of_match_ptr(pic32_spi_of_match),
 	},
 	.probe = pic32_spi_probe,

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


Thread

[PATCH v2 2/2] spi: spi-pic32: Add PIC32 SPI master driver Purna Chandra Mandal <purna.mandal@microchip.com> - 2016-03-04 14:50 +0100
  [PATCH] spi: spi-pic32: fix platform_no_drv_owner.cocci warnings kbuild test robot <lkp@intel.com> - 2016-03-04 16:30 +0100
  Re: [PATCH v2 2/2] spi: spi-pic32: Add PIC32 SPI master driver kbuild test robot <lkp@intel.com> - 2016-03-04 16:30 +0100
  Re: [PATCH v2 2/2] spi: spi-pic32: Add PIC32 SPI master driver Mark Brown <broonie@kernel.org> - 2016-03-05 13:50 +0100
    Re: [PATCH v2 2/2] spi: spi-pic32: Add PIC32 SPI master driver Purna Chandra Mandal <purna.mandal@microchip.com> - 2016-03-05 16:20 +0100
      Re: [PATCH v2 2/2] spi: spi-pic32: Add PIC32 SPI master driver Mark Brown <broonie@kernel.org> - 2016-03-06 03:30 +0100

csiph-web