]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: atlantic: Rename PCI driver struct to end in _driver
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 30 Jun 2025 16:44:07 +0000 (18:44 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Jul 2025 02:35:58 +0000 (19:35 -0700)
This is not only a cosmetic change because the section mismatch checks
(implemented in scripts/mod/modpost.c) also depend on the object's name
and for drivers the checks are stricter than for ops.

However aq_pci_driver also passes the stricter checks just fine, so no
further changes needed.

The cheating^Wmisleading name was introduced in commit 97bde5c4f909
("net: ethernet: aquantia: Support for NIC-specific code")

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250630164406.57589-2-u.kleine-koenig@baylibre.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c

index 08630ee94251ce4417062ffb097c7adcd7b84451..ed5231dece3f91e1a2530849e4597f66383a0a63 100644 (file)
@@ -463,7 +463,7 @@ static const struct dev_pm_ops aq_pm_ops = {
 };
 #endif
 
-static struct pci_driver aq_pci_ops = {
+static struct pci_driver aq_pci_driver = {
        .name = AQ_CFG_DRV_NAME,
        .id_table = aq_pci_tbl,
        .probe = aq_pci_probe,
@@ -476,11 +476,11 @@ static struct pci_driver aq_pci_ops = {
 
 int aq_pci_func_register_driver(void)
 {
-       return pci_register_driver(&aq_pci_ops);
+       return pci_register_driver(&aq_pci_driver);
 }
 
 void aq_pci_func_unregister_driver(void)
 {
-       pci_unregister_driver(&aq_pci_ops);
+       pci_unregister_driver(&aq_pci_driver);
 }