aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/Kconfig2
-rw-r--r--drivers/gpio/gpio-lynxpoint.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 0f0444475bf0..58d98dd9e4b9 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -353,7 +353,7 @@ config GPIO_GE_FPGA
353 board computers. 353 board computers.
354 354
355config GPIO_LYNXPOINT 355config GPIO_LYNXPOINT
356 bool "Intel Lynxpoint GPIO support" 356 tristate "Intel Lynxpoint GPIO support"
357 depends on ACPI && X86 357 depends on ACPI && X86
358 select IRQ_DOMAIN 358 select IRQ_DOMAIN
359 help 359 help
diff --git a/drivers/gpio/gpio-lynxpoint.c b/drivers/gpio/gpio-lynxpoint.c
index 89867ed7bd50..1a7443ee6016 100644
--- a/drivers/gpio/gpio-lynxpoint.c
+++ b/drivers/gpio/gpio-lynxpoint.c
@@ -469,4 +469,15 @@ static int __init lp_gpio_init(void)
469 return platform_driver_register(&lp_gpio_driver); 469 return platform_driver_register(&lp_gpio_driver);
470} 470}
471 471
472static void __exit lp_gpio_exit(void)
473{
474 platform_driver_unregister(&lp_gpio_driver);
475}
476
472subsys_initcall(lp_gpio_init); 477subsys_initcall(lp_gpio_init);
478module_exit(lp_gpio_exit);
479
480MODULE_AUTHOR("Mathias Nyman (Intel)");
481MODULE_DESCRIPTION("GPIO interface for Intel Lynxpoint");
482MODULE_LICENSE("GPL");
483MODULE_ALIAS("platform:lp_gpio");