mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 07:59:42 -04:00
net: atlantic: Rename PCI driver struct to end in _driver
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 97bde5c4f9
("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>
This commit is contained in:
committed by
Jakub Kicinski
parent
6b9c9def95
commit
b9ac2ae000
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user