summaryrefslogtreecommitdiff
path: root/drivers/reset/reset-qcom-aoss.c
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2020-01-08 03:19:13 +0300
committerPhilipp Zabel <p.zabel@pengutronix.de>2020-01-08 12:26:14 +0300
commite2d5e8332c9684ea254c84002bc1e13a42db9e54 (patch)
treeb35662b133bfd435802b989c4d3814600e2a7aee /drivers/reset/reset-qcom-aoss.c
parent4cf176e52397853e4a4dd37e917c5eafb47ba8d1 (diff)
downloadlinux-e2d5e8332c9684ea254c84002bc1e13a42db9e54.tar.xz
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: John Stultz <john.stultz@linaro.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset/reset-qcom-aoss.c')
-rw-r--r--drivers/reset/reset-qcom-aoss.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/reset/reset-qcom-aoss.c b/drivers/reset/reset-qcom-aoss.c
index 36db96750450..9333b923dda0 100644
--- a/drivers/reset/reset-qcom-aoss.c
+++ b/drivers/reset/reset-qcom-aoss.c
@@ -118,6 +118,7 @@ static const struct of_device_id qcom_aoss_reset_of_match[] = {
{ .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 = {
.probe = qcom_aoss_reset_probe,
@@ -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_LICENSE("GPL v2");