From patchwork Wed Jun 10 09:12:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 49682 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7FD14245D4 for ; Wed, 10 Jun 2015 09:12:44 +0000 (UTC) Received: by lbbti3 with SMTP id ti3sf10797976lbb.1 for ; Wed, 10 Jun 2015 02:12:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=5qnoNrg060WweGNeasgrWMsZkPqIVVBstbqqwg4iijI=; b=WJZlWsfv7MJPSUJgj/QrV3rflF3nKOrgtMXhq3mZzd/F/H4hDW8a0OKUVJJoeshq0C eqQXnTnPxH5QQq6Wm+8prPRapF2RJWUo5sHM0IJKRpfQQj3mcRPAPlAx36DOM0/EJ4eO cWQ/opHSr8BKITuqrx/QtwZ3HElTaNRRR1R6HR7D/T/MHtGm1JE7R3HEo9kDzZu1cdXz Ag/HSN37/LYUjjVucQYakp94fcFDueiUa4IFIfDdOqKVK7N6hQWcps4/u8rR6nRMOXt/ nkJ1AmPfSAMUEQ9JqXHRB7qvFCVhfEuf/MM+zuOTK795mkZJPVxdhpNGkcVk6s2pXN+o Yu+A== X-Gm-Message-State: ALoCoQlkm77Y35RK4xc8Sf2q9Wz1Pxqn5ZVsmkxnS7a+5X/7xjkNH6LqrqPnRc9gTYf4JnzAEB97 X-Received: by 10.180.105.226 with SMTP id gp2mr21149468wib.1.1433927563496; Wed, 10 Jun 2015 02:12:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.65 with SMTP id r1ls199757lag.61.gmail; Wed, 10 Jun 2015 02:12:43 -0700 (PDT) X-Received: by 10.112.143.165 with SMTP id sf5mr2374136lbb.44.1433927563333; Wed, 10 Jun 2015 02:12:43 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id rh10si8286043lbb.105.2015.06.10.02.12.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jun 2015 02:12:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbcmx3 with SMTP id mx3so24793112lbc.1 for ; Wed, 10 Jun 2015 02:12:43 -0700 (PDT) X-Received: by 10.152.22.99 with SMTP id c3mr2431115laf.32.1433927563204; Wed, 10 Jun 2015 02:12:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp3196960lbb; Wed, 10 Jun 2015 02:12:42 -0700 (PDT) X-Received: by 10.70.55.165 with SMTP id t5mr4030771pdp.102.1433927561254; Wed, 10 Jun 2015 02:12:41 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rm4si12999171pab.74.2015.06.10.02.12.40; Wed, 10 Jun 2015 02:12:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933639AbbFJJMj (ORCPT + 2 others); Wed, 10 Jun 2015 05:12:39 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:36550 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933207AbbFJJMh (ORCPT ); Wed, 10 Jun 2015 05:12:37 -0400 Received: by pdjm12 with SMTP id m12so33675050pdj.3 for ; Wed, 10 Jun 2015 02:12:37 -0700 (PDT) X-Received: by 10.70.43.169 with SMTP id x9mr4028439pdl.52.1433927557231; Wed, 10 Jun 2015 02:12:37 -0700 (PDT) Received: from localhost ([104.207.83.1]) by mx.google.com with ESMTPSA id eo3sm7938851pbd.66.2015.06.10.02.12.34 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 10 Jun 2015 02:12:36 -0700 (PDT) From: Hanjun Guo To: Linus Walleij , Alexandre Courbot Cc: Mark Brown , Y Vo , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Hanjun Guo Subject: [PATCH] GPIO / ACPI: export acpi_gpiochip_request(free)_interrupts for module use Date: Wed, 10 Jun 2015 17:12:07 +0800 Message-Id: <1433927527-9980-1-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-gpio-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-gpio@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- 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)