Commit 2b528fff authored by Hanjun Guo's avatar Hanjun Guo Committed by Linus Walleij

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: 733cf014 "gpio: xgene: add ACPI support for APM X-Gene GPIO standby driver"
Reviewed-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarHanjun Guo <hanjun.guo@linaro.org>
parent a713890d
...@@ -307,6 +307,7 @@ void acpi_gpiochip_request_interrupts(struct gpio_chip *chip) ...@@ -307,6 +307,7 @@ void acpi_gpiochip_request_interrupts(struct gpio_chip *chip)
acpi_walk_resources(handle, "_AEI", acpi_walk_resources(handle, "_AEI",
acpi_gpiochip_request_interrupt, acpi_gpio); acpi_gpiochip_request_interrupt, acpi_gpio);
} }
EXPORT_SYMBOL_GPL(acpi_gpiochip_request_interrupts);
/** /**
* acpi_gpiochip_free_interrupts() - Free GPIO ACPI event interrupts. * acpi_gpiochip_free_interrupts() - Free GPIO ACPI event interrupts.
...@@ -346,6 +347,7 @@ void acpi_gpiochip_free_interrupts(struct gpio_chip *chip) ...@@ -346,6 +347,7 @@ void acpi_gpiochip_free_interrupts(struct gpio_chip *chip)
kfree(event); kfree(event);
} }
} }
EXPORT_SYMBOL_GPL(acpi_gpiochip_free_interrupts);
int acpi_dev_add_driver_gpios(struct acpi_device *adev, int acpi_dev_add_driver_gpios(struct acpi_device *adev,
const struct acpi_gpio_mapping *gpios) const struct acpi_gpio_mapping *gpios)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment