diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2015-06-10 05:12:07 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-06-10 09:29:30 -0400 |
commit | 2b528fff0905497c96566d671d47f2bbf3ae295c (patch) | |
tree | 148fed5de072ccff2b7808954afd5931e0f79db3 /drivers/gpio/gpiolib-acpi.c | |
parent | a713890d32900459031d344748a23ca37758bec5 (diff) |
GPIO / ACPI: export acpi_gpiochip_request(free)_interrupts for module use
acpi_gpiochip_request(free)_interrupts can be used for modules,
so export them. This also fixs a compile error when xgene-sb
configured as kernel module.
Fixes: 733cf014f020 "gpio: xgene: add ACPI support for APM X-Gene GPIO standby driver"
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib-acpi.c')
-rw-r--r-- | drivers/gpio/gpiolib-acpi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index 19b99d0c2bf0..980a996d0169 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c | |||
@@ -307,6 +307,7 @@ void acpi_gpiochip_request_interrupts(struct gpio_chip *chip) | |||
307 | acpi_walk_resources(handle, "_AEI", | 307 | acpi_walk_resources(handle, "_AEI", |
308 | acpi_gpiochip_request_interrupt, acpi_gpio); | 308 | acpi_gpiochip_request_interrupt, acpi_gpio); |
309 | } | 309 | } |
310 | EXPORT_SYMBOL_GPL(acpi_gpiochip_request_interrupts); | ||
310 | 311 | ||
311 | /** | 312 | /** |
312 | * acpi_gpiochip_free_interrupts() - Free GPIO ACPI event interrupts. | 313 | * acpi_gpiochip_free_interrupts() - Free GPIO ACPI event interrupts. |
@@ -346,6 +347,7 @@ void acpi_gpiochip_free_interrupts(struct gpio_chip *chip) | |||
346 | kfree(event); | 347 | kfree(event); |
347 | } | 348 | } |
348 | } | 349 | } |
350 | EXPORT_SYMBOL_GPL(acpi_gpiochip_free_interrupts); | ||
349 | 351 | ||
350 | int acpi_dev_add_driver_gpios(struct acpi_device *adev, | 352 | int acpi_dev_add_driver_gpios(struct acpi_device *adev, |
351 | const struct acpi_gpio_mapping *gpios) | 353 | const struct acpi_gpio_mapping *gpios) |