diff options
| author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-06-16 20:37:43 -0400 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-06-21 11:16:42 -0400 |
| commit | 563b41c983e1ca92ad2aa8600caaa82012718f76 (patch) | |
| tree | 2233fa9c9bdd97abce9fedfc93b6110c1106882d /drivers/memory | |
| parent | 1fdab21d1d52a85c31f932844242fec5fb81daac (diff) | |
memory: atmel-sdramc: make it explicitly non-modular
The Kconfig for this option is currently:
config ATMEL_SDRAMC
bool "Atmel (Multi-port DDR-)SDRAM Controller"
...meaning that it currently is not being built as a module by anyone.
Lets remove the couple traces of modularity, so that when reading the
driver there is no doubt it is builtin-only.
Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit. An
alternate init level might be worth considering at a later date.
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
was (or is now) 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>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/memory')
| -rw-r--r-- | drivers/memory/atmel-sdramc.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/memory/atmel-sdramc.c b/drivers/memory/atmel-sdramc.c index a3ebc8a87479..53a341f3b305 100644 --- a/drivers/memory/atmel-sdramc.c +++ b/drivers/memory/atmel-sdramc.c | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Atmel (Multi-port DDR-)SDRAM Controller driver | 2 | * Atmel (Multi-port DDR-)SDRAM Controller driver |
| 3 | * | 3 | * |
| 4 | * Author: Alexandre Belloni <alexandre.belloni@free-electrons.com> | ||
| 5 | * | ||
| 4 | * Copyright (C) 2014 Atmel | 6 | * Copyright (C) 2014 Atmel |
| 5 | * | 7 | * |
| 6 | * This program is free software: you can redistribute it and/or modify | 8 | * This program is free software: you can redistribute it and/or modify |
| @@ -20,7 +22,7 @@ | |||
| 20 | #include <linux/clk.h> | 22 | #include <linux/clk.h> |
| 21 | #include <linux/err.h> | 23 | #include <linux/err.h> |
| 22 | #include <linux/kernel.h> | 24 | #include <linux/kernel.h> |
| 23 | #include <linux/module.h> | 25 | #include <linux/init.h> |
| 24 | #include <linux/of_platform.h> | 26 | #include <linux/of_platform.h> |
| 25 | #include <linux/platform_device.h> | 27 | #include <linux/platform_device.h> |
| 26 | 28 | ||
| @@ -48,7 +50,6 @@ static const struct of_device_id atmel_ramc_of_match[] = { | |||
| 48 | { .compatible = "atmel,sama5d3-ddramc", .data = &sama5d3_caps, }, | 50 | { .compatible = "atmel,sama5d3-ddramc", .data = &sama5d3_caps, }, |
| 49 | {}, | 51 | {}, |
| 50 | }; | 52 | }; |
| 51 | MODULE_DEVICE_TABLE(of, atmel_ramc_of_match); | ||
| 52 | 53 | ||
| 53 | static int atmel_ramc_probe(struct platform_device *pdev) | 54 | static int atmel_ramc_probe(struct platform_device *pdev) |
| 54 | { | 55 | { |
| @@ -90,8 +91,4 @@ static int __init atmel_ramc_init(void) | |||
| 90 | { | 91 | { |
| 91 | return platform_driver_register(&atmel_ramc_driver); | 92 | return platform_driver_register(&atmel_ramc_driver); |
| 92 | } | 93 | } |
| 93 | module_init(atmel_ramc_init); | 94 | device_initcall(atmel_ramc_init); |
| 94 | |||
| 95 | MODULE_LICENSE("GPL v2"); | ||
| 96 | MODULE_AUTHOR("Alexandre Belloni <alexandre.belloni@free-electrons.com>"); | ||
| 97 | MODULE_DESCRIPTION("Atmel (Multi-port DDR-)SDRAM Controller"); | ||
