From: Fengguang Wu Date: Mon, 16 Apr 2018 19:41:24 +0000 (+0800) Subject: ASoC: rt1305: fix platform_no_drv_owner.cocci warnings X-Git-Tag: v4.18-rc1~127^2^2~216 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b999a19b3324ae3538bc13d11210bdfc8016616a;p=users%2Fjedix%2Flinux-maple.git ASoC: rt1305: fix platform_no_drv_owner.cocci warnings sound/soc/codecs/rt1305.c:1174: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: 29bc643ddd7e ("ASoC: rt1305: Add RT1305/RT1306 amplifier driver") CC: Shuming Fan Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/rt1305.c b/sound/soc/codecs/rt1305.c index 84043068c0b7..f4c8c45f4010 100644 --- a/sound/soc/codecs/rt1305.c +++ b/sound/soc/codecs/rt1305.c @@ -1172,7 +1172,6 @@ static void rt1305_i2c_shutdown(struct i2c_client *client) static struct i2c_driver rt1305_i2c_driver = { .driver = { .name = "rt1305", - .owner = THIS_MODULE, #if defined(CONFIG_OF) .of_match_table = rt1305_of_match, #endif