Commit 3b904b04 authored by Lina Iyer's avatar Lina Iyer Committed by Andy Gross

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: default avatarLina Iyer <lina.iyer@linaro.org>
Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: default avatarAndy Gross <andy.gross@linaro.org>
parent e8b123e6
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
* Copyright (c) 2011-2014, The Linux Foundation. All rights reserved. * Copyright (c) 2011-2014, The Linux Foundation. All rights reserved.
* Copyright (c) 2014,2015, Linaro Ltd. * Copyright (c) 2014,2015, Linaro Ltd.
* *
* SAW power controller driver
*
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation. * only version 2 as published by the Free Software Foundation.
...@@ -12,7 +14,6 @@ ...@@ -12,7 +14,6 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <linux/module.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/io.h> #include <linux/io.h>
...@@ -378,8 +379,5 @@ static struct platform_driver spm_driver = { ...@@ -378,8 +379,5 @@ static struct platform_driver spm_driver = {
.of_match_table = spm_match_table, .of_match_table = spm_match_table,
}, },
}; };
module_platform_driver(spm_driver);
MODULE_LICENSE("GPL v2"); builtin_platform_driver(spm_driver);
MODULE_DESCRIPTION("SAW power controller driver");
MODULE_ALIAS("platform:saw");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment