diff options
author | Colin Foster <colin.foster@in-advantage.com> | 2022-09-05 18:21:28 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2022-09-09 08:54:37 +0200 |
commit | 2f65923c5032c9de0d898636d4cd25da5d58e9a7 (patch) | |
tree | 2eaafa3caf5a925475c60ec602b085dccab3555a /drivers/pinctrl/pinctrl-microchip-sgpio.c | |
parent | pinctrl: ocelot: add ability to be used in a non-mmio configuration (diff) | |
download | linux-2f65923c5032c9de0d898636d4cd25da5d58e9a7.tar.xz linux-2f65923c5032c9de0d898636d4cd25da5d58e9a7.zip |
pinctrl: microchip-sgpio: allow sgpio driver to be used as a module
As the commit message suggests, this simply adds the ability to select
SGPIO pinctrl as a module. This becomes more practical when the SGPIO
hardware exists on an external chip, controlled indirectly by I2C or SPI.
This commit enables that level of control.
Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220905162132.2943088-5-colin.foster@in-advantage.com
Diffstat (limited to '')
-rw-r--r-- | drivers/pinctrl/pinctrl-microchip-sgpio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-microchip-sgpio.c b/drivers/pinctrl/pinctrl-microchip-sgpio.c index 6f55bf7d5e05..e56074b7e659 100644 --- a/drivers/pinctrl/pinctrl-microchip-sgpio.c +++ b/drivers/pinctrl/pinctrl-microchip-sgpio.c @@ -999,6 +999,7 @@ static const struct of_device_id microchip_sgpio_gpio_of_match[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, microchip_sgpio_gpio_of_match); static struct platform_driver microchip_sgpio_pinctrl_driver = { .driver = { @@ -1008,4 +1009,7 @@ static struct platform_driver microchip_sgpio_pinctrl_driver = { }, .probe = microchip_sgpio_probe, }; -builtin_platform_driver(microchip_sgpio_pinctrl_driver); +module_platform_driver(microchip_sgpio_pinctrl_driver); + +MODULE_DESCRIPTION("Microchip SGPIO Pinctrl Driver"); +MODULE_LICENSE("GPL"); |