ASoC: Mediatek: MT8183: Fix platform_no_drv_owner.cocci warnings
authorYueHaibing <yuehaibing@huawei.com>
Wed, 3 Apr 2019 07:11:39 +0000 (07:11 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 4 Apr 2019 05:50:44 +0000 (12:50 +0700)
Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c

index a50c6af5c94508746259b0c57ca2c7f35e92c1a5..681bedb524f92c3ba9909507e6aa01989b3a2187 100644 (file)
@@ -364,7 +364,6 @@ static const struct of_device_id mt8183_mt6358_ts3a227_max98357_dt_match[] = {
 static struct platform_driver mt8183_mt6358_ts3a227_max98357_driver = {
        .driver = {
                .name = "mt8183_mt6358_ts3a227_max98357",
-               .owner = THIS_MODULE,
 #ifdef CONFIG_OF
                .of_match_table = mt8183_mt6358_ts3a227_max98357_dt_match,
 #endif