summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2016-07-02 19:13:22 -0400
committerBjorn Helgaas <bhelgaas@google.com>2016-08-01 12:22:50 -0500
commit58bdaa1d38d1d7e8bc41f903ff0e83fedc58ccdc (patch)
tree99f564bb9e75bfd5e42a72db145d7dd2c2d42ade /drivers/pci
parent0e6f98cb6269c7f5810509fc965e09049060d675 (diff)
PCI: artpec6: Make explicitly non-modular
This code is not being built as a module by anyone: drivers/pci/host/Kconfig:config PCIE_ARTPEC6 drivers/pci/host/Kconfig: bool "Axis ARTPEC-6 PCIe controller" Remove uses of MODULE_DESCRIPTION(), MODULE_AUTHOR(), MODULE_LICENSE(), etc., so that when reading the driver there is no doubt it is builtin-only. The information is preserved in comments at the top of the file. Replace module_platform_driver() with builtin_platform_driver(), which uses the same init level priority, so init ordering is unchanged. Note that MODULE_DEVICE_TABLE is a no-op for non-modular code. [bhelgaas: changelog, add "Author" comment] Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: Niklas Cassel <niklas.cassel@axis.com> CC: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/host/pcie-artpec6.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/pci/host/pcie-artpec6.c b/drivers/pci/host/pcie-artpec6.c
index be54fad4698b..16ba70b7ec65 100644
--- a/drivers/pci/host/pcie-artpec6.c
+++ b/drivers/pci/host/pcie-artpec6.c
@@ -1,6 +1,8 @@
/*
* PCIe host controller driver for Axis ARTPEC-6 SoC
*
+ * Author: Niklas Cassel <niklas.cassel@axis.com>
+ *
* Based on work done by Phil Edworthy <phil@edworthys.org>
*
* This program is free software; you can redistribute it and/or modify
@@ -10,7 +12,7 @@
#include <linux/delay.h>
#include <linux/kernel.h>
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/pci.h>
#include <linux/platform_device.h>
#include <linux/resource.h>
@@ -267,7 +269,6 @@ static const struct of_device_id artpec6_pcie_of_match[] = {
{ .compatible = "axis,artpec6-pcie", },
{},
};
-MODULE_DEVICE_TABLE(of, artpec6_pcie_of_match);
static struct platform_driver artpec6_pcie_driver = {
.probe = artpec6_pcie_probe,
@@ -276,9 +277,4 @@ static struct platform_driver artpec6_pcie_driver = {
.of_match_table = artpec6_pcie_of_match,
},
};
-
-module_platform_driver(artpec6_pcie_driver);
-
-MODULE_AUTHOR("Niklas Cassel <niklas.cassel@axis.com>");
-MODULE_DESCRIPTION("Axis ARTPEC-6 PCIe host controller driver");
-MODULE_LICENSE("GPL v2");
+builtin_platform_driver(artpec6_pcie_driver);