mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
gpio: mb86s7x: share with other SoCs as module
In order to reuse this driver for the Socionext Synquacer SC2A11 SoC, which inherited this IP from Fujitsu, remove the ARCH_MB86S7X Kconfig dependency, and revert the changes that prevent it from being built as a module. This reverts commitsd65aa4b67b
andd5610e514e
. Cc: Geliang Tang <geliangtang@gmail.com> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> [Folded in module_platform_driver() fixup] Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
4714221b0c
commit
e1289dba18
2 changed files with 7 additions and 3 deletions
|
@ -286,8 +286,7 @@ config GPIO_LYNXPOINT
|
||||||
Requires ACPI device enumeration code to set up a platform device.
|
Requires ACPI device enumeration code to set up a platform device.
|
||||||
|
|
||||||
config GPIO_MB86S7X
|
config GPIO_MB86S7X
|
||||||
bool "GPIO support for Fujitsu MB86S7x Platforms"
|
tristate "GPIO support for Fujitsu MB86S7x Platforms"
|
||||||
depends on ARCH_MB86S7X || COMPILE_TEST
|
|
||||||
help
|
help
|
||||||
Say yes here to support the GPIO controller in Fujitsu MB86S70 SoCs.
|
Say yes here to support the GPIO controller in Fujitsu MB86S70 SoCs.
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
|
#include <linux/module.h>
|
||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
#include <linux/ioport.h>
|
#include <linux/ioport.h>
|
||||||
|
@ -209,6 +210,7 @@ static const struct of_device_id mb86s70_gpio_dt_ids[] = {
|
||||||
{ .compatible = "fujitsu,mb86s70-gpio" },
|
{ .compatible = "fujitsu,mb86s70-gpio" },
|
||||||
{ /* sentinel */ }
|
{ /* sentinel */ }
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, mb86s70_gpio_dt_ids);
|
||||||
|
|
||||||
static struct platform_driver mb86s70_gpio_driver = {
|
static struct platform_driver mb86s70_gpio_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
|
@ -218,5 +220,8 @@ static struct platform_driver mb86s70_gpio_driver = {
|
||||||
.probe = mb86s70_gpio_probe,
|
.probe = mb86s70_gpio_probe,
|
||||||
.remove = mb86s70_gpio_remove,
|
.remove = mb86s70_gpio_remove,
|
||||||
};
|
};
|
||||||
|
module_platform_driver(mb86s70_gpio_driver);
|
||||||
|
|
||||||
builtin_platform_driver(mb86s70_gpio_driver);
|
MODULE_DESCRIPTION("MB86S7x GPIO Driver");
|
||||||
|
MODULE_ALIAS("platform:mb86s70-gpio");
|
||||||
|
MODULE_LICENSE("GPL");
|
||||||
|
|
Loading…
Reference in a new issue