From: kbuild test robot <fengguang.wu@intel.com>
To: Henry Chen <henryc.chen@mediatek.com>
Cc: kbuild-all@01.org, Mark Brown <broonie@kernel.org>,
Javier Martinez Canillas <javier@osg.samsung.com>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH] regulator: mt6311: fix platform_no_drv_owner.cocci warnings
Date: Sun, 30 Aug 2015 20:20:42 +0800 [thread overview]
Message-ID: <20150830122042.GA25959@lkp-nex05> (raw)
In-Reply-To: <201508302039.0QPwjqPU%fengguang.wu@intel.com>
drivers/regulator/mt6311-regulator.c:169: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: Henry Chen <henryc.chen@mediatek.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
mt6311-regulator.c | 1 -
1 file changed, 1 deletion(-)
--- a/drivers/regulator/mt6311-regulator.c
+++ b/drivers/regulator/mt6311-regulator.c
@@ -166,7 +166,6 @@ MODULE_DEVICE_TABLE(of, mt6311_dt_ids);
static struct i2c_driver mt6311_regulator_driver = {
.driver = {
.name = "mt6311",
- .owner = THIS_MODULE,
.of_match_table = of_match_ptr(mt6311_dt_ids),
},
.probe = mt6311_i2c_probe,
parent reply other threads:[~2015-08-30 12:21 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <201508302039.0QPwjqPU%fengguang.wu@intel.com>]
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=20150830122042.GA25959@lkp-nex05 \
--to=fengguang.wu@intel.com \
--cc=broonie@kernel.org \
--cc=henryc.chen@mediatek.com \
--cc=javier@osg.samsung.com \
--cc=kbuild-all@01.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®