Commit e1e38ea1 authored by zhong jiang's avatar zhong jiang Committed by Mark Brown

ASoC: remove unneeded static set .owner field in platform_driver

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: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 24d66383
...@@ -150,7 +150,6 @@ static const struct of_device_id mt2701_wm8960_machine_dt_match[] = { ...@@ -150,7 +150,6 @@ static const struct of_device_id mt2701_wm8960_machine_dt_match[] = {
static struct platform_driver mt2701_wm8960_machine = { static struct platform_driver mt2701_wm8960_machine = {
.driver = { .driver = {
.name = "mt2701-wm8960", .name = "mt2701-wm8960",
.owner = THIS_MODULE,
#ifdef CONFIG_OF #ifdef CONFIG_OF
.of_match_table = mt2701_wm8960_machine_dt_match, .of_match_table = mt2701_wm8960_machine_dt_match,
#endif #endif
......
...@@ -205,7 +205,6 @@ static const struct of_device_id mt6797_mt6351_dt_match[] = { ...@@ -205,7 +205,6 @@ static const struct of_device_id mt6797_mt6351_dt_match[] = {
static struct platform_driver mt6797_mt6351_driver = { static struct platform_driver mt6797_mt6351_driver = {
.driver = { .driver = {
.name = "mt6797-mt6351", .name = "mt6797-mt6351",
.owner = THIS_MODULE,
#ifdef CONFIG_OF #ifdef CONFIG_OF
.of_match_table = mt6797_mt6351_dt_match, .of_match_table = mt6797_mt6351_dt_match,
#endif #endif
......
...@@ -286,7 +286,6 @@ static struct platform_driver rockchip_sound_driver = { ...@@ -286,7 +286,6 @@ static struct platform_driver rockchip_sound_driver = {
.probe = snd_rk_mc_probe, .probe = snd_rk_mc_probe,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.pm = &snd_soc_pm_ops, .pm = &snd_soc_pm_ops,
.of_match_table = rockchip_sound_of_match, .of_match_table = rockchip_sound_of_match,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment