From patchwork Mon Nov 19 04:56:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 12908 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 CC5CC23E01 for ; Mon, 19 Nov 2012 05:02:09 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 6C694A18DE5 for ; Mon, 19 Nov 2012 05:02:09 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so5952283iej.11 for ; Sun, 18 Nov 2012 21:02:08 -0800 (PST) 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:x-gm-message-state; bh=RBv3Pdvv2FmqZMOB0G7qi+DUBHbQD567jTSoEXA2uGw=; b=OVq3rNWs50+39f91GZBCupByeH6HUBrmGaZWEuC4kBcvVYngFe9uqEO5kvDFaqbMLp LfENYlWTJhhzwKZriGe+5Aa9NVuGFcrNsgvrjdwwtI9Yl55+sBv90FMi7D5T/i3F/U1N 4EVr/hnpbBz6HYIp4h7o/HxVLWYYRH+VYwZKF33DF8zQusia4YLUO1QbIui/O4xADSSJ 0deh9GKG/Q56mEFn6RL5HpUOjeqtCw/G61iCC+zWvu6qw8PuOpeZL1IUd9nlNU2oC67V 1msILmrJbNHmFnRTe3/ku0DpHK27jS2XSgkJsyPNDTOk45SJa8H861FC4+pFXdRmR3ll u3XA== Received: by 10.50.91.195 with SMTP id cg3mr5559426igb.57.1353301328872; Sun, 18 Nov 2012 21:02:08 -0800 (PST) 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.67.148 with SMTP id n20csp115537igt; Sun, 18 Nov 2012 21:02:08 -0800 (PST) Received: by 10.68.248.70 with SMTP id yk6mr29960621pbc.160.1353301327983; Sun, 18 Nov 2012 21:02:07 -0800 (PST) Received: from mail-da0-f54.google.com (mail-da0-f54.google.com [209.85.210.54]) by mx.google.com with ESMTPS id f9si11946798paz.145.2012.11.18.21.02.07 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 18 Nov 2012 21:02:07 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.54 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.54; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.54 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-da0-f54.google.com with SMTP id z9so2520312dad.27 for ; Sun, 18 Nov 2012 21:02:07 -0800 (PST) Received: by 10.68.232.195 with SMTP id tq3mr30110430pbc.70.1353301327620; Sun, 18 Nov 2012 21:02:07 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id tm8sm5551154pbc.48.2012.11.18.21.02.04 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 18 Nov 2012 21:02:07 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, kgene.kim@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] pinctrl: Samsung: Do not initialise statics to 0 Date: Mon, 19 Nov 2012 10:26:01 +0530 Message-Id: <1353300961-22632-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmn9m9HwUn7mw+j7/s6ezzYlIfMC8mxwB0C4xO/lmVEdbiHPx22OwJ4iZlqMHyR9G7kXJs8 Static variables are initialised to 0 by GCC. Fixes the following checkpatch error: ERROR: do not initialise statics to 0 or NULL FILE: pinctrl/pinctrl-samsung.c:50: static unsigned int pin_base = 0; Signed-off-by: Sachin Kamat Acked-by: Linus Walleij --- drivers/pinctrl/pinctrl-samsung.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c index 81c9896..36f8875 100644 --- a/drivers/pinctrl/pinctrl-samsung.c +++ b/drivers/pinctrl/pinctrl-samsung.c @@ -47,7 +47,7 @@ struct pin_config { { "samsung,pin-pud-pdn", PINCFG_TYPE_PUD_PDN }, }; -static unsigned int pin_base = 0; +static unsigned int pin_base; static inline struct samsung_pin_bank *gc_to_pin_bank(struct gpio_chip *gc) {