From 51cac89addabf43edca338f024a8d95a057fd261 Mon Sep 17 00:00:00 2001 From: Will McVicker Date: Mon, 10 Feb 2020 12:40:05 -0800 Subject: [PATCH] ANDROID: GKI: drivers: qcom: cmd-db: Allow compiling qcom,cmd-db driver as module This is a hardware specific driver. So, allow compiling it as a module. Signed-off-by: Will McVicker Signed-off-by: Saravana Kannan Bug: 149128810 Test: compile, verify ABI is updated Test: verify module loads on reference device Change-Id: I98667e51914277e2009901c327db488b94dfd133 --- drivers/soc/qcom/Kconfig | 2 +- drivers/soc/qcom/cmd-db.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index ab034dcc0bf6..a819c1e26b50 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -4,7 +4,7 @@ menu "Qualcomm SoC drivers" config QCOM_COMMAND_DB - bool "Qualcomm Command DB" + tristate "Qualcomm Command DB" depends on ARCH_QCOM || COMPILE_TEST depends on OF_RESERVED_MEM help diff --git a/drivers/soc/qcom/cmd-db.c b/drivers/soc/qcom/cmd-db.c index 78d73ec587e1..4381e99c935f 100644 --- a/drivers/soc/qcom/cmd-db.c +++ b/drivers/soc/qcom/cmd-db.c @@ -2,6 +2,7 @@ /* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. */ #include +#include #include #include #include @@ -315,3 +316,5 @@ static int __init cmd_db_device_init(void) return platform_driver_register(&cmd_db_dev_driver); } arch_initcall(cmd_db_device_init); +MODULE_DESCRIPTION("Qualcomm Command DB"); +MODULE_LICENSE("GPL v2");