linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] GPIO / ACPI: export acpi_gpiochip_request(free)_interrupts for module use
@ 2015-06-10  9:12 Hanjun Guo
  2015-06-10  9:33 ` Mark Brown
  2015-06-10 13:30 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: Hanjun Guo @ 2015-06-10  9:12 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot
  Cc: Mark Brown, Y Vo, linux-gpio, linux-kernel, Hanjun Guo

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"
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
---
 drivers/gpio/gpiolib-acpi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
index 19b99d0..980a996 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)
 	acpi_walk_resources(handle, "_AEI",
 			    acpi_gpiochip_request_interrupt, acpi_gpio);
 }
+EXPORT_SYMBOL_GPL(acpi_gpiochip_request_interrupts);
 
 /**
  * acpi_gpiochip_free_interrupts() - Free GPIO ACPI event interrupts.
@@ -346,6 +347,7 @@ void acpi_gpiochip_free_interrupts(struct gpio_chip *chip)
 		kfree(event);
 	}
 }
+EXPORT_SYMBOL_GPL(acpi_gpiochip_free_interrupts);
 
 int acpi_dev_add_driver_gpios(struct acpi_device *adev,
 			      const struct acpi_gpio_mapping *gpios)
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] GPIO / ACPI: export acpi_gpiochip_request(free)_interrupts for module use
  2015-06-10  9:12 [PATCH] GPIO / ACPI: export acpi_gpiochip_request(free)_interrupts for module use Hanjun Guo
@ 2015-06-10  9:33 ` Mark Brown
  2015-06-10 13:30 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2015-06-10  9:33 UTC (permalink / raw)
  To: Hanjun Guo
  Cc: Linus Walleij, Alexandre Courbot, Y Vo, linux-gpio, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 265 bytes --]

On Wed, Jun 10, 2015 at 05:12:07PM +0800, Hanjun Guo wrote:
> 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.

Reviwed-by: Mark Brown <broonie@kernel.org>

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] GPIO / ACPI: export acpi_gpiochip_request(free)_interrupts for module use
  2015-06-10  9:12 [PATCH] GPIO / ACPI: export acpi_gpiochip_request(free)_interrupts for module use Hanjun Guo
  2015-06-10  9:33 ` Mark Brown
@ 2015-06-10 13:30 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2015-06-10 13:30 UTC (permalink / raw)
  To: Hanjun Guo
  Cc: Alexandre Courbot, Mark Brown, Y Vo, linux-gpio@vger.kernel.org,
	linux-kernel@vger.kernel.org

On Wed, Jun 10, 2015 at 11:12 AM, Hanjun Guo <hanjun.guo@linaro.org> wrote:

> 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"
> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>

Patch applied.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-10 13:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-10  9:12 [PATCH] GPIO / ACPI: export acpi_gpiochip_request(free)_interrupts for module use Hanjun Guo
2015-06-10  9:33 ` Mark Brown
2015-06-10 13:30 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).