diff options
author | Lina Iyer <lina.iyer@linaro.org> | 2016-01-04 18:58:28 +0100 |
---|---|---|
committer | Andy Gross <andy.gross@linaro.org> | 2016-03-31 00:20:35 +0200 |
commit | 3b904b046c7adfbadb124851c7a23276f7187ddb (patch) | |
tree | e881b01776d9603a15d4fcc83edfccdf884fe3ab | |
parent | soc: qcom: smem_state: Add stubs for disabled smem_state (diff) | |
download | linux-3b904b046c7adfbadb124851c7a23276f7187ddb.tar.xz linux-3b904b046c7adfbadb124851c7a23276f7187ddb.zip |
drivers: qcom: spm: avoid module usage in non-modular SPM driver
SPM driver provides cpuidle support on some QC SoC's. The functionality
is non-modular and there is no need for module support. Convert module
platform init to builtin platform driver init. The driver functionality
is not affected by this change.
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Lina Iyer <lina.iyer@linaro.org>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
-rw-r--r-- | drivers/soc/qcom/spm.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/soc/qcom/spm.c b/drivers/soc/qcom/spm.c index 5548a31e1a39..f324451e0940 100644 --- a/drivers/soc/qcom/spm.c +++ b/drivers/soc/qcom/spm.c @@ -2,6 +2,8 @@ * Copyright (c) 2011-2014, The Linux Foundation. All rights reserved. * Copyright (c) 2014,2015, Linaro Ltd. * + * SAW power controller driver + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. @@ -12,7 +14,6 @@ * GNU General Public License for more details. */ -#include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/io.h> @@ -378,8 +379,5 @@ static struct platform_driver spm_driver = { .of_match_table = spm_match_table, }, }; -module_platform_driver(spm_driver); -MODULE_LICENSE("GPL v2"); -MODULE_DESCRIPTION("SAW power controller driver"); -MODULE_ALIAS("platform:saw"); +builtin_platform_driver(spm_driver); |