From patchwork Tue Nov 5 09:30:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 21329 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2E78325B39 for ; Tue, 5 Nov 2013 09:30:24 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id 1sf15778941qec.10 for ; Tue, 05 Nov 2013 01:30:23 -0800 (PST) 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=hfktkGZCHcmcQoeuEHXTimAhyWVBoYIyJ3FyMmKg+5E=; b=igOQ/s5XJPJyUhLoZHPMWzdBYfs1wSQP4C+f4xSU/DN1qd6h0i2YhfPz8hONPhfcDs PN5oBF2Wai+zCMFSoFvIo8qKad3uzcczp/XaX616K66cKdyppf4GPqAue4Kd3uqpBFaN xPpusN+HgSnhsL1ti4C+psddixqQ+OEYkB9tl2xj7yM8ont/7Sy0aKjpsv3LKXk8o0+E +78Lq9TsGiffyfYGzNQjQO/PWh35aUgq65nbrnUagfmNPZ4MWw7I/xlntKne/Z12haMP GtkWm1MjbP9P2Sz/RaJ/czJZDP1yZY97r3jRW/v7CAI5GQHpYaAM4DBM5dgJEPKXrcir sLCg== X-Gm-Message-State: ALoCoQmgDCbKVl3UyV78WQhDePO7DOG1MZ1phXgpfkuYv1NA4ctyC7K0FCquzQADakLOUT3kc1rA X-Received: by 10.52.248.195 with SMTP id yo3mr6087618vdc.1.1383643823644; Tue, 05 Nov 2013 01:30:23 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.29.129 with SMTP id k1ls132170qeh.75.gmail; Tue, 05 Nov 2013 01:30:23 -0800 (PST) X-Received: by 10.58.23.33 with SMTP id j1mr409917vef.27.1383643823534; Tue, 05 Nov 2013 01:30:23 -0800 (PST) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id om4si6200891vcb.68.2013.11.05.01.30.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Nov 2013 01:30:23 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id ld13so5327653vcb.19 for ; Tue, 05 Nov 2013 01:30:23 -0800 (PST) X-Received: by 10.52.33.69 with SMTP id p5mr904085vdi.28.1383643823279; Tue, 05 Nov 2013 01:30:23 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp193325vcz; Tue, 5 Nov 2013 01:30:22 -0800 (PST) X-Received: by 10.180.187.175 with SMTP id ft15mr15913750wic.20.1383643822206; Tue, 05 Nov 2013 01:30:22 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by mx.google.com with ESMTPS id wr5si8927608wjc.49.2013.11.05.01.30.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Nov 2013 01:30:22 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.181 is neither permitted nor denied by best guess record for domain of linus.walleij@linaro.org) client-ip=209.85.212.181; Received: by mail-wi0-f181.google.com with SMTP id ex4so1757866wid.14 for ; Tue, 05 Nov 2013 01:30:21 -0800 (PST) X-Received: by 10.180.94.38 with SMTP id cz6mr15999336wib.27.1383643821774; Tue, 05 Nov 2013 01:30:21 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id bs15sm12826351wib.10.2013.11.05.01.30.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Nov 2013 01:30:21 -0800 (PST) From: Linus Walleij To: linux-gpio@vger.kernel.org, Andrew Victor , Nicolas Ferre , Jean-Christophe Plagniol-Villard Cc: Alexandre Courbot , linux-arm-kernel@lists.infradead.org, Linus Walleij Subject: [PATCH 3/4] pinctrl: at91: copy define to driver Date: Tue, 5 Nov 2013 10:30:14 +0100 Message-Id: <1383643814-14308-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.8.3.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The #define for the maximum number of GPIO blocks was retrieved into pinctrl-at91.c by implicit inclusion of from creating a dependency on machine-local . Break the depenency by copying this single define into the driver. Signed-off-by: Linus Walleij --- This will be applied directly to the pinctrl tree unless there are specific protests. --- drivers/pinctrl/pinctrl-at91.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index f350fd2e170e..0dfb8c7b58df 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -33,6 +33,7 @@ #include "core.h" +#define MAX_GPIO_BANKS 5 #define MAX_NB_GPIO_PER_BANK 32 struct at91_pinctrl_mux_ops;