Commit b9ac2ae0 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Jakub Kicinski
Browse files

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 97bde5c4
("net: ethernet: aquantia: Support for NIC-specific code")

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250630164406.57589-2-u.kleine-koenig@baylibre.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6b9c9def
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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);
}