From: Ben Dooks Date: Wed, 9 Oct 2019 13:26:27 +0000 (+0100) Subject: net/ethernet: xgmac don't set .driver twice X-Git-Tag: v5.10.7~3838^2~379 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7573822883bdbec33a9f79dd90edbf0c3fa22c1a;p=platform%2Fkernel%2Flinux-rpi.git net/ethernet: xgmac don't set .driver twice Cleanup the .driver setup to just do it once, to avoid the following sparse warning: drivers/net/ethernet/calxeda/xgmac.c:1914:10: warning: Initializer entry defined twice drivers/net/ethernet/calxeda/xgmac.c:1920:10: also defined here Signed-off-by: Ben Dooks Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/calxeda/xgmac.c b/drivers/net/ethernet/calxeda/xgmac.c index f96a42a..af04a2c 100644 --- a/drivers/net/ethernet/calxeda/xgmac.c +++ b/drivers/net/ethernet/calxeda/xgmac.c @@ -1914,10 +1914,10 @@ static struct platform_driver xgmac_driver = { .driver = { .name = "calxedaxgmac", .of_match_table = xgmac_of_match, + .pm = &xgmac_pm_ops, }, .probe = xgmac_probe, .remove = xgmac_remove, - .driver.pm = &xgmac_pm_ops, }; module_platform_driver(xgmac_driver);