ASoC: codecs: fix platform_no_drv_owner.cocci warnings
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 3 Mar 2021 09:08:01 +0000 (17:08 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 13:13:21 +0000 (13:13 +0000)
./sound/soc/codecs/lpass-rx-macro.c:3588:3-8: No need to set .owner here.
The core will do it.

Remove .owner field if calls are used which set it automatically

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1614762481-102466-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-rx-macro.c

index 76909c50d7b963b1794b2302d8f933cd3a457aad..c0f7b5ecbf9e3365bdc14e5168d66aa2fdc4ee83 100644 (file)
@@ -3585,7 +3585,6 @@ static const struct of_device_id rx_macro_dt_match[] = {
 static struct platform_driver rx_macro_driver = {
        .driver = {
                .name = "rx_macro",
-               .owner = THIS_MODULE,
                .of_match_table = rx_macro_dt_match,
                .suppress_bind_attrs = true,
        },