diff options
| author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-06-16 20:37:48 -0400 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-06-21 11:17:45 -0400 |
| commit | 8a86a093ca3b924e6c2d5267cffb809965582a8d (patch) | |
| tree | 12aaa7eb2b723d8d8c14574879b09cfe89165d56 /drivers/memory | |
| parent | 563b41c983e1ca92ad2aa8600caaa82012718f76 (diff) | |
memory: atmel-ebi: make it explicitly non-modular
The Kconfig currently controlling compilation of this code is:
drivers/memory/Kconfig:config ATMEL_EBI
drivers/memory/Kconfig: bool "Atmel EBI driver"
...meaning that it currently is not being built as a module by anyone.
Lets remove the few remaining modular references, so that when reading
the driver there is no doubt it is builtin-only.
Since module_platform_driver() uses the same init level priority as
builtin_platform_driver() the init ordering remains unchanged with
this commit.
Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
We also delete the MODULE_LICENSE tag etc. since all that information
is already contained at the top of the file in the comments.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/memory')
| -rw-r--r-- | drivers/memory/atmel-ebi.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/memory/atmel-ebi.c b/drivers/memory/atmel-ebi.c index 17d9d3f60f20..f87ad6f5d2dc 100644 --- a/drivers/memory/atmel-ebi.c +++ b/drivers/memory/atmel-ebi.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | #include <linux/mfd/syscon.h> | 14 | #include <linux/mfd/syscon.h> |
| 15 | #include <linux/mfd/syscon/atmel-matrix.h> | 15 | #include <linux/mfd/syscon/atmel-matrix.h> |
| 16 | #include <linux/mfd/syscon/atmel-smc.h> | 16 | #include <linux/mfd/syscon/atmel-smc.h> |
| 17 | #include <linux/module.h> | 17 | #include <linux/init.h> |
| 18 | #include <linux/of_device.h> | 18 | #include <linux/of_device.h> |
| 19 | #include <linux/regmap.h> | 19 | #include <linux/regmap.h> |
| 20 | 20 | ||
| @@ -648,7 +648,6 @@ static const struct of_device_id at91_ebi_id_table[] = { | |||
| 648 | }, | 648 | }, |
| 649 | { /* sentinel */ } | 649 | { /* sentinel */ } |
| 650 | }; | 650 | }; |
| 651 | MODULE_DEVICE_TABLE(of, at91_ebi_id_table); | ||
| 652 | 651 | ||
| 653 | static int at91_ebi_dev_disable(struct at91_ebi *ebi, struct device_node *np) | 652 | static int at91_ebi_dev_disable(struct at91_ebi *ebi, struct device_node *np) |
| 654 | { | 653 | { |
| @@ -764,8 +763,4 @@ static struct platform_driver at91_ebi_driver = { | |||
| 764 | .of_match_table = at91_ebi_id_table, | 763 | .of_match_table = at91_ebi_id_table, |
| 765 | }, | 764 | }, |
| 766 | }; | 765 | }; |
| 767 | module_platform_driver_probe(at91_ebi_driver, at91_ebi_probe); | 766 | builtin_platform_driver_probe(at91_ebi_driver, at91_ebi_probe); |
| 768 | |||
| 769 | MODULE_AUTHOR("Jean-Jacques Hiblot <jjhiblot@traphandler.com>"); | ||
| 770 | MODULE_DESCRIPTION("Atmel EBI driver"); | ||
| 771 | MODULE_LICENSE("GPL"); | ||
