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 <willmcvicker@google.com>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Bug: 149128810
Test: compile, verify ABI is updated
Test: verify module loads on reference device
Change-Id: I98667e51914277e2009901c327db488b94dfd133
This commit is contained in:
Will McVicker 2020-02-10 12:40:05 -08:00
parent 336dfa707c
commit 51cac89add
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -2,6 +2,7 @@
/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. */
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_platform.h>
@ -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");