diff mbox

ASoC: rt5663: fix platform_no_drv_owner.cocci warnings

Message ID 20160917024518.GA98416@lkp-hsw-ep6 (mailing list archive)
State Accepted
Commit c5f1edd405eb874cc2c81e8d62c6b3a73c502529
Headers show

Commit Message

kernel test robot Sept. 17, 2016, 2:45 a.m. UTC
sound/soc/codecs/rt5663.c:3203: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: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 rt5663.c |    1 -
 1 file changed, 1 deletion(-)

Comments

Bard Liao Sept. 19, 2016, 1:56 a.m. UTC | #1
> -----Original Message-----
> From: kbuild test robot [mailto:lkp@intel.com]
> Sent: Saturday, September 17, 2016 10:45 AM
> To: Wei Yongjun
> Cc: kbuild-all@01.org; Bard Liao; Oder Chiou; Liam Girdwood; Mark Brown;
> Jaroslav Kysela; Takashi Iwai; Wei Yongjun; alsa-devel@alsa-project.org;
> linux-kernel@vger.kernel.org
> Subject: [PATCH] ASoC: rt5663: fix platform_no_drv_owner.cocci warnings
> 
> sound/soc/codecs/rt5663.c:3203: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: Wei Yongjun <weiyongjun1@huawei.com>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>

Acked-by: Bard Liao <bardliao@realtek.com>
diff mbox

Patch

--- a/sound/soc/codecs/rt5663.c
+++ b/sound/soc/codecs/rt5663.c
@@ -3200,7 +3200,6 @@  static void rt5663_i2c_shutdown(struct i
 static struct i2c_driver rt5663_i2c_driver = {
 	.driver = {
 		.name = "rt5663",
-		.owner = THIS_MODULE,
 		.acpi_match_table = ACPI_PTR(rt5663_acpi_match),
 		.of_match_table = of_match_ptr(rt5663_of_match),
 	},