From: kbuild test robot <fengguang.wu@intel.com>
To: Baolin Wang <baolin.wang@spreadtrum.com>
Cc: kbuild-all@01.org, Mark Brown <broonie@kernel.org>,
linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] spi: fix platform_no_drv_owner.cocci warnings
Date: Sat, 14 Oct 2017 05:10:40 +0800 [thread overview]
Message-ID: <20171013211040.GA11015@intel17.lkp.intel.com> (raw)
In-Reply-To: <201710140534.s8rgtQDp%fengguang.wu@intel.com>
drivers/spi/spi-sprd-adi.c:409: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: 7e2903cb91df ("spi: Add ADI driver for Spreadtrum platform")
CC: Baolin Wang <baolin.wang@spreadtrum.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
spi-sprd-adi.c | 1 -
1 file changed, 1 deletion(-)
--- a/drivers/spi/spi-sprd-adi.c
+++ b/drivers/spi/spi-sprd-adi.c
@@ -406,7 +406,6 @@ MODULE_DEVICE_TABLE(of, sprd_adi_of_matc
static struct platform_driver sprd_adi_driver = {
.driver = {
.name = "sprd-adi",
- .owner = THIS_MODULE,
.of_match_table = sprd_adi_of_match,
},
.probe = sprd_adi_probe,
next parent reply other threads:[~2017-10-13 21:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201710140534.s8rgtQDp%fengguang.wu@intel.com>
2017-10-13 21:10 ` kbuild test robot [this message]
[not found] ` <20171013211040.GA11015-QGOtBMdtQC0FrBlDiA5jVhL4W9x8LtSr@public.gmane.org>
2017-10-13 21:16 ` Applied "spi: sprd-adi: fix platform_no_drv_owner.cocci warnings" to the spi tree Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171013211040.GA11015@intel17.lkp.intel.com \
--to=fengguang.wu@intel.com \
--cc=baolin.wang@spreadtrum.com \
--cc=broonie@kernel.org \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).