diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-08-22 17:59:42 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-08-23 16:34:08 -0400 |
commit | bb9b54ca3761111eb67401c0cea891586c24107d (patch) | |
tree | ce2ef91ed13ea4eb5425477ccf80666334ce4a73 | |
parent | 18224b3a732156d68d4ce5a74aa9148d922d08eb (diff) |
PCI: altera: Make explicitly non-modular
This code is not being built as a module by anyone:
drivers/pci/host/Kconfig:config PCIE_ALTERA
drivers/pci/host/Kconfig: bool "Altera 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.
Note that for non-modular code, MODULE_DEVICE_TABLE is a no-op and
module_init() translates to device_initcall().
[bhelgaas: changelog]
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Ley Foon Tan <lftan@altera.com>
-rw-r--r-- | drivers/pci/host/pcie-altera.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c index 2b7837650db8..48f2736a10cd 100644 --- a/drivers/pci/host/pcie-altera.c +++ b/drivers/pci/host/pcie-altera.c | |||
@@ -1,6 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright Altera Corporation (C) 2013-2015. All rights reserved | 2 | * Copyright Altera Corporation (C) 2013-2015. All rights reserved |
3 | * | 3 | * |
4 | * Author: Ley Foon Tan <lftan@altera.com> | ||
5 | * Description: Altera PCIe host controller driver | ||
6 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | 7 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 8 | * under the terms and conditions of the GNU General Public License, |
6 | * version 2, as published by the Free Software Foundation. | 9 | * version 2, as published by the Free Software Foundation. |
@@ -17,7 +20,7 @@ | |||
17 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
18 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
19 | #include <linux/irqchip/chained_irq.h> | 22 | #include <linux/irqchip/chained_irq.h> |
20 | #include <linux/module.h> | 23 | #include <linux/init.h> |
21 | #include <linux/of_address.h> | 24 | #include <linux/of_address.h> |
22 | #include <linux/of_irq.h> | 25 | #include <linux/of_irq.h> |
23 | #include <linux/of_pci.h> | 26 | #include <linux/of_pci.h> |
@@ -568,7 +571,6 @@ static const struct of_device_id altera_pcie_of_match[] = { | |||
568 | { .compatible = "altr,pcie-root-port-1.0", }, | 571 | { .compatible = "altr,pcie-root-port-1.0", }, |
569 | {}, | 572 | {}, |
570 | }; | 573 | }; |
571 | MODULE_DEVICE_TABLE(of, altera_pcie_of_match); | ||
572 | 574 | ||
573 | static struct platform_driver altera_pcie_driver = { | 575 | static struct platform_driver altera_pcie_driver = { |
574 | .probe = altera_pcie_probe, | 576 | .probe = altera_pcie_probe, |
@@ -583,8 +585,4 @@ static int altera_pcie_init(void) | |||
583 | { | 585 | { |
584 | return platform_driver_register(&altera_pcie_driver); | 586 | return platform_driver_register(&altera_pcie_driver); |
585 | } | 587 | } |
586 | module_init(altera_pcie_init); | 588 | device_initcall(altera_pcie_init); |
587 | |||
588 | MODULE_AUTHOR("Ley Foon Tan <lftan@altera.com>"); | ||
589 | MODULE_DESCRIPTION("Altera PCIe host controller driver"); | ||
590 | MODULE_LICENSE("GPL v2"); | ||