From patchwork Mon Jun 17 09:38:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2732351 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 51CDAC0AB1 for ; Mon, 17 Jun 2013 09:53:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 75E3E20283 for ; Mon, 17 Jun 2013 09:53:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C2B8D2027F for ; Mon, 17 Jun 2013 09:53:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932449Ab3FQJw6 (ORCPT ); Mon, 17 Jun 2013 05:52:58 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:38958 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932406Ab3FQJw5 (ORCPT ); Mon, 17 Jun 2013 05:52:57 -0400 Received: by mail-pa0-f46.google.com with SMTP id fa11so2673113pad.5 for ; Mon, 17 Jun 2013 02:52:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding:x-gm-message-state; bh=dFKi8fpB9wBV7hXLgXX/59rXlr0YiCj2hlN8bLYA1KQ=; b=LOea3vrJ9dUl6OxKp7da9wfc0VMV8XO28YKkpg0BaYrsAMvXCiCuVBNMPFQ/uBmKY2 aajjAoBiXXkFW8o484mpawPWKmnY3lJ6ZHsNEUMiFXfH+//Ui1I13fHqnW9pFhzaK1J7 kJhJTMK6My2pKk+u5NyJS/b9kNfLWAs7129pziAOE2GNzHpQIvIY5fmW4ZySQ51WGGTd n085AcDtCUyzDo6xncFPlUmayvREceDb1HkfDZpnwsrhRMRVWGwOz1kQ+3ZRU/zbtrYi GFCD9FU4BuUZ+ayW2fat8x8NoharjlgrhCd5+pQQ4bHZKt6pbwHOj/yszn8t/W8eujru zSow== X-Received: by 10.68.132.199 with SMTP id ow7mr12045395pbb.161.1371462777372; Mon, 17 Jun 2013 02:52:57 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id fl2sm14228634pab.23.2013.06.17.02.52.53 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 02:52:56 -0700 (PDT) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: linux-samsung-soc@vger.kernel.org, linus.walleij@linaro.org, sachin.kamat@linaro.org, patches@linaro.org, Doug Anderson Subject: [PATCH Resend] pinctrl: exynos: Fix build breakage Date: Mon, 17 Jun 2013 15:08:12 +0530 Message-Id: <1371461892-5298-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQnPF5aITegGHlkV35JYk9wLkPlS48h2QTHlPY5RsOmAnnO36NV6refByDdVoAu3hefqMCWY Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 'exynos_wkup_irq_ack' should be defined ahead of its call. Fixes the following error: drivers/pinctrl/pinctrl-exynos.c: In function ‘exynos_wkup_irq_mask’: drivers/pinctrl/pinctrl-exynos.c:299:3: error: implicit declaration of function ‘exynos_wkup_irq_ack’ [-Werror=implicit-function-declaration] exynos_wkup_irq_ack(irqd); Signed-off-by: Sachin Kamat Cc: Doug Anderson --- Fixed the commit message. --- drivers/pinctrl/pinctrl-exynos.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/pinctrl/pinctrl-exynos.c b/drivers/pinctrl/pinctrl-exynos.c index 8cd5bf5..f9277bc 100644 --- a/drivers/pinctrl/pinctrl-exynos.c +++ b/drivers/pinctrl/pinctrl-exynos.c @@ -279,6 +279,15 @@ err_domains: return ret; } +static void exynos_wkup_irq_ack(struct irq_data *irqd) +{ + struct samsung_pin_bank *b = irq_data_get_irq_chip_data(irqd); + struct samsung_pinctrl_drv_data *d = b->drvdata; + unsigned long pend = d->ctrl->weint_pend + b->eint_offset; + + writel(1 << irqd->hwirq, d->virt_base + pend); +} + static void exynos_wkup_irq_mask(struct irq_data *irqd) { struct samsung_pin_bank *b = irq_data_get_irq_chip_data(irqd); @@ -307,15 +316,6 @@ static void exynos_wkup_irq_mask(struct irq_data *irqd) spin_unlock_irqrestore(&b->slock, flags); } -static void exynos_wkup_irq_ack(struct irq_data *irqd) -{ - struct samsung_pin_bank *b = irq_data_get_irq_chip_data(irqd); - struct samsung_pinctrl_drv_data *d = b->drvdata; - unsigned long pend = d->ctrl->weint_pend + b->eint_offset; - - writel(1 << irqd->hwirq, d->virt_base + pend); -} - static void exynos_wkup_irq_unmask(struct irq_data *irqd) { struct samsung_pin_bank *b = irq_data_get_irq_chip_data(irqd);