diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-07-07 21:58:01 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-08 20:31:42 -0700 |
commit | 9f7cb73ef64b17e9bd97a62a2b18282461abde61 (patch) | |
tree | 6a82a52ec372853635d1eb6c1efb9b54fba540b4 | |
parent | 6d1ce9c03880c28a4a48f94d4a2dcb2e57c1b88e (diff) | |
download | lwn-9f7cb73ef64b17e9bd97a62a2b18282461abde61.tar.gz lwn-9f7cb73ef64b17e9bd97a62a2b18282461abde61.zip |
bcm63xx_enet: change the driver variables to static
bcm63xx_enetsw_driver and bcm63xx_enet_driver are only used in
bcm63xx_enet.c now, change them to static.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220707135801.1483941-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | drivers/net/ethernet/broadcom/bcm63xx_enet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c index 514d61dd91c7..fcaa6a2d067f 100644 --- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c +++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c @@ -1935,7 +1935,7 @@ static int bcm_enet_remove(struct platform_device *pdev) return 0; } -struct platform_driver bcm63xx_enet_driver = { +static struct platform_driver bcm63xx_enet_driver = { .probe = bcm_enet_probe, .remove = bcm_enet_remove, .driver = { @@ -2756,7 +2756,7 @@ static int bcm_enetsw_remove(struct platform_device *pdev) return 0; } -struct platform_driver bcm63xx_enetsw_driver = { +static struct platform_driver bcm63xx_enetsw_driver = { .probe = bcm_enetsw_probe, .remove = bcm_enetsw_remove, .driver = { |