diff options
author | Nikita Danilov | 2019-04-29 12:04:45 +0200 |
---|---|---|
committer | David S. Miller | 2019-05-01 15:30:15 +0200 |
commit | 58608082e66ddf9643cf6b98fe81c216a410ced1 (patch) | |
tree | 36d64f1592dd867aab57cfa769c42521b5f1ca8d /drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c | |
parent | net: aquantia: link interrupt handling function (diff) | |
download | kernel-qcow2-linux-58608082e66ddf9643cf6b98fe81c216a410ced1.tar.gz kernel-qcow2-linux-58608082e66ddf9643cf6b98fe81c216a410ced1.tar.xz kernel-qcow2-linux-58608082e66ddf9643cf6b98fe81c216a410ced1.zip |
net: aquantia: create global service workqueue
We need this to schedule link interrupt handling and
various service tasks.
Signed-off-by: Nikita Danilov <ndanilov@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c b/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c index 533a78deefee..eec49e6e95ab 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c @@ -368,4 +368,13 @@ static struct pci_driver aq_pci_ops = { .shutdown = aq_pci_shutdown, }; -module_pci_driver(aq_pci_ops); +int aq_pci_func_register_driver(void) +{ + return pci_register_driver(&aq_pci_ops); +} + +void aq_pci_func_unregister_driver(void) +{ + pci_unregister_driver(&aq_pci_ops); +} + |