gpio: mxc: Support module build
authorAnson Huang <Anson.Huang@nxp.com>
Thu, 17 Sep 2020 05:33:46 +0000 (13:33 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 29 Sep 2020 13:04:31 +0000 (15:04 +0200)
commit12d16b397ce0a999d13762c4c0cae2fb82eb60ee
treed30122a0929cba980d3cd338f2de1c74d70e0b4f
parent513034d8b089b9a49dab57845aee70e830fe7334
gpio: mxc: Support module build

Change config to tristate, add module device table, module author,
description and license to support module build for i.MX GPIO driver.

As this is a SoC GPIO module, it provides common functions for most
of the peripheral devices, such as GPIO pins control, secondary
interrupt controller for GPIO pins IRQ etc., without GPIO driver, most
of the peripheral devices will NOT work properly, so GPIO module is
similar with clock, pinctrl driver that should be loaded ONCE and
never unloaded.

Since MXC GPIO driver needs to have init function to register syscore
ops once, here still use subsys_initcall(), NOT module_platform_driver().

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Link: https://lore.kernel.org/r/1600320829-1453-1-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpio-mxc.c