diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 7a3a645412a1..9c7cdf331ea3 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -228,7 +228,7 @@ config QCOM_RMTFS_MEM Say y here if you intend to boot the modem remoteproc. config QCOM_RPMH - bool "Qualcomm RPM-Hardened (RPMH) Communication" + tristate "Qualcomm Technologies, Inc. RPM-Hardened (RPMH) Communication driver" depends on ARCH_QCOM && ARM64 || COMPILE_TEST help Support for communication with the hardened-RPM blocks in diff --git a/drivers/soc/qcom/rpmh-internal.h b/drivers/soc/qcom/rpmh-internal.h index cc62cec263ee..3b650e30eefb 100644 --- a/drivers/soc/qcom/rpmh-internal.h +++ b/drivers/soc/qcom/rpmh-internal.h @@ -1,7 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. */ - #ifndef __RPM_INTERNAL_H__ #define __RPM_INTERNAL_H__ diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c index 36e35e9ea309..05748ac3f327 100644 --- a/drivers/soc/qcom/rpmh-rsc.c +++ b/drivers/soc/qcom/rpmh-rsc.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -685,9 +686,7 @@ static struct platform_driver rpmh_driver = { .of_match_table = rpmh_drv_match, }, }; +builtin_platform_driver(rpmh_driver); -static int __init rpmh_driver_init(void) -{ - return platform_driver_register(&rpmh_driver); -} -arch_initcall(rpmh_driver_init); +MODULE_LICENSE("GPL v2"); +MODULE_DESCRIPTION("Qualcomm Technologies, Inc. RPMH communication driver");