Skip to content

Commit e1e38ea

Browse files
xiongzhongjiangbroonie
authored andcommitted
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: zhong jiang <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 24d6638 commit e1e38ea

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

sound/soc/mediatek/mt2701/mt2701-wm8960.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ static const struct of_device_id mt2701_wm8960_machine_dt_match[] = {
150150
static struct platform_driver mt2701_wm8960_machine = {
151151
.driver = {
152152
.name = "mt2701-wm8960",
153-
.owner = THIS_MODULE,
154153
#ifdef CONFIG_OF
155154
.of_match_table = mt2701_wm8960_machine_dt_match,
156155
#endif

sound/soc/mediatek/mt6797/mt6797-mt6351.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ static const struct of_device_id mt6797_mt6351_dt_match[] = {
205205
static struct platform_driver mt6797_mt6351_driver = {
206206
.driver = {
207207
.name = "mt6797-mt6351",
208-
.owner = THIS_MODULE,
209208
#ifdef CONFIG_OF
210209
.of_match_table = mt6797_mt6351_dt_match,
211210
#endif

sound/soc/rockchip/rk3288_hdmi_analog.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ static struct platform_driver rockchip_sound_driver = {
286286
.probe = snd_rk_mc_probe,
287287
.driver = {
288288
.name = DRV_NAME,
289-
.owner = THIS_MODULE,
290289
.pm = &snd_soc_pm_ops,
291290
.of_match_table = rockchip_sound_of_match,
292291
},

0 commit comments

Comments
 (0)