summaryrefslogtreecommitdiffstats
path: root/drivers/reset/reset-zx2967.c
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2017-02-02 15:52:12 +0100
committerPhilipp Zabel <p.zabel@pengutronix.de>2017-02-02 16:32:09 +0100
commit7a1ca76dba35d1a443278811fb67625f0e98a713 (patch)
treed23e2d61e4bc66f7536ceac2f140dd676d3fee88 /drivers/reset/reset-zx2967.c
parentreset: core: fix reset_control_put (diff)
downloadlinux-7a1ca76dba35d1a443278811fb67625f0e98a713.tar.xz
linux-7a1ca76dba35d1a443278811fb67625f0e98a713.zip
reset: make zx2967 explicitly non-modular
The Kconfig currently controlling compilation of this code is: config RESET_ZX2967 bool "ZTE ZX2967 Reset Driver ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastructure use, so that when reading the driver there is no doubt it is builtin-only. Since builtin_platform_driver() was already in use, 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. We don't replace module.h with init.h since the file does not appear to use __init prefix anywhere. Cc: Jun Nie <jun.nie@linaro.org> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Reviewed-by: Baoyou Xie <baoyou.xie@linaro.org> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset/reset-zx2967.c')
-rw-r--r--drivers/reset/reset-zx2967.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/reset/reset-zx2967.c b/drivers/reset/reset-zx2967.c
index 5d821513aa3e..4dabb9ec4841 100644
--- a/drivers/reset/reset-zx2967.c
+++ b/drivers/reset/reset-zx2967.c
@@ -8,7 +8,6 @@
* License terms: GNU General Public License (GPL) version 2
*/
-#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/reset-controller.h>
@@ -89,7 +88,6 @@ static const struct of_device_id zx2967_reset_dt_ids[] = {
{ .compatible = "zte,zx296718-reset", },
{},
};
-MODULE_DEVICE_TABLE(of, zx2967_reset_dt_ids);
static struct platform_driver zx2967_reset_driver = {
.probe = zx2967_reset_probe,
@@ -98,9 +96,4 @@ static struct platform_driver zx2967_reset_driver = {
.of_match_table = zx2967_reset_dt_ids,
},
};
-
builtin_platform_driver(zx2967_reset_driver);
-
-MODULE_AUTHOR("Baoyou Xie <baoyou.xie@linaro.org>");
-MODULE_DESCRIPTION("ZTE zx2967 Reset Controller Driver");
-MODULE_LICENSE("GPL");