Commit faeeeea8 authored by zhong jiang's avatar zhong jiang Committed by Greg Kroah-Hartman

staging: 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>
Acked-by: default avatarVaibhav Agarwal <vaibhav.sr@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b4a01d8f
...@@ -1087,7 +1087,6 @@ static const struct of_device_id greybus_asoc_machine_of_match[] = { ...@@ -1087,7 +1087,6 @@ static const struct of_device_id greybus_asoc_machine_of_match[] = {
static struct platform_driver gbaudio_codec_driver = { static struct platform_driver gbaudio_codec_driver = {
.driver = { .driver = {
.name = "apb-dummy-codec", .name = "apb-dummy-codec",
.owner = THIS_MODULE,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.pm = &gbaudio_codec_pm_ops, .pm = &gbaudio_codec_pm_ops,
#endif #endif
......
...@@ -286,7 +286,6 @@ static struct platform_driver gsw_driver = { ...@@ -286,7 +286,6 @@ static struct platform_driver gsw_driver = {
.remove = mt7621_gsw_remove, .remove = mt7621_gsw_remove,
.driver = { .driver = {
.name = "mt7621-gsw", .name = "mt7621-gsw",
.owner = THIS_MODULE,
.of_match_table = mediatek_gsw_match, .of_match_table = mediatek_gsw_match,
}, },
}; };
......
...@@ -2167,7 +2167,6 @@ static struct platform_driver mtk_driver = { ...@@ -2167,7 +2167,6 @@ static struct platform_driver mtk_driver = {
.remove = mtk_remove, .remove = mtk_remove,
.driver = { .driver = {
.name = "mtk_soc_eth", .name = "mtk_soc_eth",
.owner = THIS_MODULE,
.of_match_table = of_mtk_match, .of_match_table = of_mtk_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