ASoC: remove unneeded static set .owner field in platform_driver
authorzhong jiang <zhongjiang@huawei.com>
Wed, 12 Sep 2018 03:41:49 +0000 (11:41 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 12 Sep 2018 09:52:25 +0000 (10:52 +0100)
platform_driver_register will set the .owner field. So it is safe
to remove the redundant assignment.

The issue is detected with the help of Coccinelle.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt2701/mt2701-wm8960.c
sound/soc/mediatek/mt6797/mt6797-mt6351.c
sound/soc/rockchip/rk3288_hdmi_analog.c

index 89f34efd9747290f4a62d73c4afd0a4773f4d6c1..e5d49e6e2f990b675ef0f12be1bba2e22de46824 100644 (file)
@@ -150,7 +150,6 @@ static const struct of_device_id mt2701_wm8960_machine_dt_match[] = {
 static struct platform_driver mt2701_wm8960_machine = {
        .driver = {
                .name = "mt2701-wm8960",
-               .owner = THIS_MODULE,
 #ifdef CONFIG_OF
                .of_match_table = mt2701_wm8960_machine_dt_match,
 #endif
index b1558c57b9ca7afd37230ab6a7e0fd728d0296d1..6e578e830e42e55e83d70de8468c85b3fac22bd7 100644 (file)
@@ -205,7 +205,6 @@ static const struct of_device_id mt6797_mt6351_dt_match[] = {
 static struct platform_driver mt6797_mt6351_driver = {
        .driver = {
                .name = "mt6797-mt6351",
-               .owner = THIS_MODULE,
 #ifdef CONFIG_OF
                .of_match_table = mt6797_mt6351_dt_match,
 #endif
index 929b3fe289b0b9ca7298463ba03da0b36f49a7b1..a472d5eb2950943f2973c1a4c9e9b725d7c178b8 100644 (file)
@@ -286,7 +286,6 @@ static struct platform_driver rockchip_sound_driver = {
        .probe = snd_rk_mc_probe,
        .driver = {
                .name = DRV_NAME,
-               .owner = THIS_MODULE,
                .pm = &snd_soc_pm_ops,
                .of_match_table = rockchip_sound_of_match,
        },