[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160304152238.GA27359@lkp-ib03>
Date: Fri, 4 Mar 2016 23:22:38 +0800
From: kbuild test robot <lkp@...el.com>
To: Purna Chandra Mandal <purna.mandal@...rochip.com>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
linux-spi@...r.kernel.org,
Purna Chandra Mandal <purna.mandal@...rochip.com>,
Mark Brown <broonie@...nel.org>,
Joshua Henderson <digitalpeer@...italpeer.com>,
Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
Subject: [PATCH] spi: spi-pic32: fix platform_no_drv_owner.cocci warnings
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@...rochip.com>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.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,
Powered by blists - more mailing lists