From patchwork Wed Aug 22 14:29:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10881 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9949223E56 for ; Wed, 22 Aug 2012 14:30:13 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 8A424A18D6A for ; Wed, 22 Aug 2012 14:30:01 +0000 (UTC) Received: by yhpp61 with SMTP id p61so718465yhp.11 for ; Wed, 22 Aug 2012 07:30:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=XRvnUrCdCn/F9YS0/cuRxNz/8LGVMF3VViJVlG+z69g=; b=hdHd4cgeehtBkvUNqXSJecbCYuh/1Xkl3x9StGSQClq5Itmog5IcEfJB5nAo/SB6Km 0fAvrpXlvRVzoBJBM7oYT6Tt1soYr7xtIDuX7vbJU1fCzysKnvm/vk+q3KkydMBsAbAp lwV5KiI4Ksk3gaqn0JFhJTBPW/fVGGH73GiTjsusmdfkCC/ZRo6ifdILo5GwmhNCTtiF dtJSQupIOs7m5LkgmmhPlnyj9wraYNzINogYLakmpPshEcytdBNflacq3gG9SWtCZBze f/sdX44CRCRclXFQ9WAsTfF9cQrC5Ugw+R3JVZN1/1CV83+8uX5rAPkCNy85/qEw9ttr WpeA== Received: by 10.50.182.161 with SMTP id ef1mr2447343igc.0.1345645812112; Wed, 22 Aug 2012 07:30:12 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp205477igc; Wed, 22 Aug 2012 07:30:11 -0700 (PDT) Received: by 10.180.20.11 with SMTP id j11mr6367096wie.12.1345645810726; Wed, 22 Aug 2012 07:30:10 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.171]) by mx.google.com with ESMTP id l2si6111273wei.99.2012.08.22.07.30.10; Wed, 22 Aug 2012 07:30:10 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.171 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.171; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.171 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from localhost.localdomain (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0M0GLZ-1Tw90g1m0L-00ubHC; Wed, 22 Aug 2012 16:29:55 +0200 From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Magnus Damm , Linus Walleij , "Rafael J. Wysocki" , Thomas Gleixner Subject: [PATCH 3/4] ARM: export set_irq_flags/irq_set_chip_and_handler Date: Wed, 22 Aug 2012 16:29:39 +0200 Message-Id: <1345645780-2749-4-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1345645780-2749-1-git-send-email-arnd@arndb.de> References: <1345645780-2749-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:EWdEv/4gQfVX8pc5MiApoTmorp5e3UR0kDbyDBe0ioC YMQAfZc9NU6dsr5abhw6Vzo3aVA+kOCoWcCHpNnZuuqR5bpxlE d1uHrJj/xyMnYL4iVmoRK6GDgLEcaeUak5vxhcZFR0PoKfGxyB qbQoTPtAXClxxqL6nW2pOivPuCnKfKfc+jJb2+CjBZyXjq7Zk+ zKdqpDWsH73wJx+YukOqJ0yq/6voLwkAsNGsSJj7QpPC2FFWPd bNbrnlKZzqbXMOxK/29MI86AsIuEm/zGL56Y2tzcvcbAp7wgZl Rl1agphnGV0YrnErOZlfM/ZpPNDvnxfkrG8NgY04cfEU6P/B3E mYao8jZOm1Ksma/O1Edvf7EnG0eEAoex7a/HZOu/My1QAPPoyU tRfC5Ymy1mpnA== X-Gm-Message-State: ALoCoQlxhtWwNS8jeYd/8uF5BXfXAt0G3lvVdOsclpt174EoVWeVn1i+lshy9lSzM7F4jL7YkEBt The recently added Emma Mobile GPIO driver calls set_irq_flags and irq_set_chip_and_handler for the interrupts it exports and it can be built as a module, which currently fails with ERROR: "set_irq_flags" [drivers/gpio/gpio-em.ko] undefined! ERROR: "irq_set_chip_and_handler_name" [drivers/gpio/gpio-em.ko] undefined! We either need to replace the call to set_irq_flags with something else or export that function. This patch does the latter. Signed-off-by: Arnd Bergmann Cc: Magnus Damm Cc: Linus Walleij Cc: Rafael J. Wysocki Cc: Thomas Gleixner Cc: Russell King --- arch/arm/kernel/irq.c | 2 ++ kernel/irq/chip.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 16cedb4..8961650 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include @@ -109,6 +110,7 @@ void set_irq_flags(unsigned int irq, unsigned int iflags) /* Order is clear bits in "clr" then set bits in "set" */ irq_modify_status(irq, clr, set & ~clr); } +EXPORT_SYMBOL_GPL(set_irq_flags); void __init init_IRQ(void) { diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index eebd6d5..3c3cea3 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -671,6 +672,7 @@ irq_set_chip_and_handler_name(unsigned int irq, struct irq_chip *chip, irq_set_chip(irq, chip); __irq_set_handler(irq, handle, 0, name); } +EXPORT_SYMBOL_GPL(irq_set_chip_and_handler_name); void irq_modify_status(unsigned int irq, unsigned long clr, unsigned long set) {