提交 e2d5e833 编写于 作者: J John Stultz 提交者: Philipp Zabel

reset: qcom-aoss: Allow CONFIG_RESET_QCOM_AOSS to be a tristate

Allow CONFIG_RESET_QCOM_AOSS to be set as as =m to allow for the
driver to be loaded from a modules.

Also replaces the builtin_platform_driver() line with
module_platform_driver() and adds a MODULE_DEVICE_TABLE() entry.

Cc: Todd Kjos <tkjos@google.com>
Cc: Alistair Delva <adelva@google.com>
Cc: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
Reviewed-by: NBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
上级 4cf176e5
...@@ -122,7 +122,7 @@ config RESET_PISTACHIO ...@@ -122,7 +122,7 @@ config RESET_PISTACHIO
This enables the reset driver for ImgTec Pistachio SoCs. This enables the reset driver for ImgTec Pistachio SoCs.
config RESET_QCOM_AOSS config RESET_QCOM_AOSS
bool "Qcom AOSS Reset Driver" tristate "Qcom AOSS Reset Driver"
depends on ARCH_QCOM || COMPILE_TEST depends on ARCH_QCOM || COMPILE_TEST
help help
This enables the AOSS (always on subsystem) reset driver This enables the AOSS (always on subsystem) reset driver
......
...@@ -118,6 +118,7 @@ static const struct of_device_id qcom_aoss_reset_of_match[] = { ...@@ -118,6 +118,7 @@ static const struct of_device_id qcom_aoss_reset_of_match[] = {
{ .compatible = "qcom,sdm845-aoss-cc", .data = &sdm845_aoss_desc }, { .compatible = "qcom,sdm845-aoss-cc", .data = &sdm845_aoss_desc },
{} {}
}; };
MODULE_DEVICE_TABLE(of, qcom_aoss_reset_of_match);
static struct platform_driver qcom_aoss_reset_driver = { static struct platform_driver qcom_aoss_reset_driver = {
.probe = qcom_aoss_reset_probe, .probe = qcom_aoss_reset_probe,
...@@ -127,7 +128,7 @@ static struct platform_driver qcom_aoss_reset_driver = { ...@@ -127,7 +128,7 @@ static struct platform_driver qcom_aoss_reset_driver = {
}, },
}; };
builtin_platform_driver(qcom_aoss_reset_driver); module_platform_driver(qcom_aoss_reset_driver);
MODULE_DESCRIPTION("Qualcomm AOSS Reset Driver"); MODULE_DESCRIPTION("Qualcomm AOSS Reset Driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册