From 6d07d8c2b91d83cae42fc8a60547e504aa1eafbc Mon Sep 17 00:00:00 2001 From: Raghavendra Rao Ananta Date: Wed, 5 Jun 2019 12:46:41 -0700 Subject: [PATCH] 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 --- drivers/pinctrl/qcom/Kconfig | 8 +++++++- drivers/pinctrl/qcom/pinctrl-msm.c | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/qcom/Kconfig b/drivers/pinctrl/qcom/Kconfig index 890d0a3a790b..3d00575814d0 100644 --- a/drivers/pinctrl/qcom/Kconfig +++ b/drivers/pinctrl/qcom/Kconfig @@ -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" diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index ee8119879c4c..b37939c17eb5 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -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");