summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/Kconfig
diff options
context:
space:
mode:
authorClément Léger <clement.leger@bootlin.com>2022-06-17 13:35:48 +0300
committerLinus Walleij <linus.walleij@linaro.org>2022-06-28 10:18:08 +0300
commit4425205ea38bef591a6c800bb47082fc35e788a0 (patch)
tree21d0960bd87a89b848a3490a21aca3d3bcf6c88c /drivers/pinctrl/Kconfig
parent61a2cc093bdcb96cd3e3ed2082c3c30e3795d87e (diff)
downloadlinux-4425205ea38bef591a6c800bb47082fc35e788a0.tar.xz
pinctrl: ocelot: allow building as a module
Set PINCTRL_OCELOT config option as a tristate and add MODULE_DEVICE_TABLE()/MODULE_LICENSE() to export appropriate information. Moreover, switch from builtin_platform_driver() to module_platform_driver(). Signed-off-by: Clément Léger <clement.leger@bootlin.com> Link: https://lore.kernel.org/r/20220617103548.490092-1-clement.leger@bootlin.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/Kconfig')
-rw-r--r--drivers/pinctrl/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index f52960d2dfbe..257b06752747 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -311,7 +311,7 @@ config PINCTRL_MICROCHIP_SGPIO
LED controller.
config PINCTRL_OCELOT
- bool "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs"
+ tristate "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs"
depends on OF
depends on HAS_IOMEM
select GPIOLIB