.. | .. |
---|
1 | 1 | // SPDX-License-Identifier: GPL-2.0 |
---|
2 | 2 | /* pci-pf-stub - simple stub driver for PCI SR-IOV PF device |
---|
3 | 3 | * |
---|
4 | | - * This driver is meant to act as a "whitelist" for devices that provde |
---|
| 4 | + * This driver is meant to act as a "whitelist" for devices that provide |
---|
5 | 5 | * SR-IOV functionality while at the same time not actually needing a |
---|
6 | 6 | * driver of their own. |
---|
7 | 7 | */ |
---|
.. | .. |
---|
9 | 9 | #include <linux/module.h> |
---|
10 | 10 | #include <linux/pci.h> |
---|
11 | 11 | |
---|
12 | | -/** |
---|
| 12 | +/* |
---|
13 | 13 | * pci_pf_stub_whitelist - White list of devices to bind pci-pf-stub onto |
---|
14 | 14 | * |
---|
15 | 15 | * This table provides the list of IDs this driver is supposed to bind |
---|
.. | .. |
---|
37 | 37 | .probe = pci_pf_stub_probe, |
---|
38 | 38 | .sriov_configure = pci_sriov_configure_simple, |
---|
39 | 39 | }; |
---|
40 | | - |
---|
41 | | -static int __init pci_pf_stub_init(void) |
---|
42 | | -{ |
---|
43 | | - return pci_register_driver(&pf_stub_driver); |
---|
44 | | -} |
---|
45 | | - |
---|
46 | | -static void __exit pci_pf_stub_exit(void) |
---|
47 | | -{ |
---|
48 | | - pci_unregister_driver(&pf_stub_driver); |
---|
49 | | -} |
---|
50 | | - |
---|
51 | | -module_init(pci_pf_stub_init); |
---|
52 | | -module_exit(pci_pf_stub_exit); |
---|
| 40 | +module_pci_driver(pf_stub_driver); |
---|
53 | 41 | |
---|
54 | 42 | MODULE_LICENSE("GPL"); |
---|