Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

John Stultz and committed by
Philipp Zabel
e2d5e833 4cf176e5

+3 -2
+1 -1
drivers/reset/Kconfig
··· 122 122 This enables the reset driver for ImgTec Pistachio SoCs. 123 123 124 124 config RESET_QCOM_AOSS 125 - bool "Qcom AOSS Reset Driver" 125 + tristate "Qcom AOSS Reset Driver" 126 126 depends on ARCH_QCOM || COMPILE_TEST 127 127 help 128 128 This enables the AOSS (always on subsystem) reset driver
+2 -1
drivers/reset/reset-qcom-aoss.c
··· 118 118 { .compatible = "qcom,sdm845-aoss-cc", .data = &sdm845_aoss_desc }, 119 119 {} 120 120 }; 121 + MODULE_DEVICE_TABLE(of, qcom_aoss_reset_of_match); 121 122 122 123 static struct platform_driver qcom_aoss_reset_driver = { 123 124 .probe = qcom_aoss_reset_probe, ··· 128 127 }, 129 128 }; 130 129 131 - builtin_platform_driver(qcom_aoss_reset_driver); 130 + module_platform_driver(qcom_aoss_reset_driver); 132 131 133 132 MODULE_DESCRIPTION("Qualcomm AOSS Reset Driver"); 134 133 MODULE_LICENSE("GPL v2");