summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c
diff options
context:
space:
mode:
authorNikita Danilov2019-04-29 12:04:45 +0200
committerDavid S. Miller2019-05-01 15:30:15 +0200
commit58608082e66ddf9643cf6b98fe81c216a410ced1 (patch)
tree36d64f1592dd867aab57cfa769c42521b5f1ca8d /drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c
parentnet: aquantia: link interrupt handling function (diff)
downloadkernel-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.c11
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);
+}
+