diff options
author | zhong jiang <zhongjiang@huawei.com> | 2018-09-12 11:40:28 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-14 10:45:51 +0200 |
commit | faeeeea89670b39c7afa2cc567c3917c511608c4 (patch) | |
tree | a806a08f496e943129aee9dfc1c291345f37cf9d /drivers/staging/mt7621-eth | |
parent | b4a01d8fa3116b8c2d1233f657f3c3db74b685aa (diff) | |
download | linux-faeeeea89670b39c7afa2cc567c3917c511608c4.tar.gz linux-faeeeea89670b39c7afa2cc567c3917c511608c4.tar.bz2 linux-faeeeea89670b39c7afa2cc567c3917c511608c4.zip |
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: zhong jiang <zhongjiang@huawei.com>
Acked-by: Vaibhav Agarwal <vaibhav.sr@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-eth')
-rw-r--r-- | drivers/staging/mt7621-eth/gsw_mt7621.c | 1 | ||||
-rw-r--r-- | drivers/staging/mt7621-eth/mtk_eth_soc.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/mt7621-eth/gsw_mt7621.c b/drivers/staging/mt7621-eth/gsw_mt7621.c index 2c07b559bed7..53767b17bad9 100644 --- a/drivers/staging/mt7621-eth/gsw_mt7621.c +++ b/drivers/staging/mt7621-eth/gsw_mt7621.c @@ -286,7 +286,6 @@ static struct platform_driver gsw_driver = { .remove = mt7621_gsw_remove, .driver = { .name = "mt7621-gsw", - .owner = THIS_MODULE, .of_match_table = mediatek_gsw_match, }, }; diff --git a/drivers/staging/mt7621-eth/mtk_eth_soc.c b/drivers/staging/mt7621-eth/mtk_eth_soc.c index 713507558568..363d3c978e02 100644 --- a/drivers/staging/mt7621-eth/mtk_eth_soc.c +++ b/drivers/staging/mt7621-eth/mtk_eth_soc.c @@ -2167,7 +2167,6 @@ static struct platform_driver mtk_driver = { .remove = mtk_remove, .driver = { .name = "mtk_soc_eth", - .owner = THIS_MODULE, .of_match_table = of_mtk_match, }, }; |