pinctrl-msm: Allow the driver to be compiled as a module

Currently, the Kconfig state of MSM_PINCTRL is declared as 'bool',
thus not allowing the driver to be compiled as a module. Hence,
change it to 'tristate' so that the driver can be compiled as a
dynamically loadable kernel module.

Also add MODULE_LICENSE to the driver.

Change-Id: Ica74f8c1ebccaf7eff7e25cb53bb2be759596e8a
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
This commit is contained in:
Raghavendra Rao Ananta 2019-06-05 12:46:41 -07:00
commit 6d07d8c2b9
2 changed files with 9 additions and 2 deletions

View file

@ -2,11 +2,17 @@
if (ARCH_QCOM || COMPILE_TEST)
config PINCTRL_MSM
bool
tristate "Qualcomm generic pin controller driver framework"
select PINMUX
select PINCONF
select GENERIC_PINCONF
select GPIOLIB_IRQCHIP
help
This is a Qualcomm generic pin controller driver framework
that is used by platform specific drivers to enable the
Top Level Mode Multiplexer (TLMM) hardware block. Say Y
here to compile statically, or M here to compile it as a
module. If unsure, say N.
config PINCTRL_APQ8064
tristate "Qualcomm APQ8064 pin controller driver"

View file

@ -1,6 +1,6 @@
/*
* Copyright (c) 2013, Sony Mobile Communications AB.
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -1170,3 +1170,4 @@ int msm_pinctrl_remove(struct platform_device *pdev)
}
EXPORT_SYMBOL(msm_pinctrl_remove);
MODULE_LICENSE("GPL v2");