diff options
author | 2015-08-25 20:25:37 -0400 | |
---|---|---|
committer | 2015-10-06 14:24:18 -0500 | |
commit | b4eb6cdbbd13698704863f680c643c569909e1c2 (patch) | |
tree | cef9ac8c2f9deae55d262f6849959da21cc53676 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PCI: Remove unnecessary "if" statement (diff) | |
download | wireguard-linux-b4eb6cdbbd13698704863f680c643c569909e1c2.tar.xz wireguard-linux-b4eb6cdbbd13698704863f680c643c569909e1c2.zip |
PCI: Add builtin_pci_driver() to avoid registration boilerplate
In f309d4443130 ("platform_device: better support builtin boilerplate
avoidance"), we introduced the builtin_driver() macro.
Here we use that support and extend it to PCI driver registration, so where
a driver is clearly non-modular and builtin-only, we can register it in a
similar fashion. Existing code that is clearly non-modular can be updated
with the simple mapping of
module_pci_driver(...) ---> builtin_pci_driver(...)
We've essentially cloned the former to make the latter, and taken out the
remove/module_exit parts since those never get used in a non-modular build
of the code.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions