From patchwork Tue Apr 3 08:42:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 7579 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 25D9823E12 for ; Tue, 3 Apr 2012 08:51:02 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id E13D7A1842F for ; Tue, 3 Apr 2012 08:51:01 +0000 (UTC) Received: by iage36 with SMTP id e36so7580853iag.11 for ; Tue, 03 Apr 2012 01:51:01 -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:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=UNgpx5tQQQjcmuqnkSEfQAx6e6imkJW7ly/9L2wmpSI=; b=pNPLrLXk8n2Ew+zUtZNKhMePKgeEyTzf+cF2OJ9ywZkAZSQ+Viexv1exjGMvYZjPYK R9CpybJXQy9koIgrgGqjEQhJbVlwhsQ9SYI8Lwf32zUTXki8GnWAP/0PsIYv/UFTWvOq V9WWcP2vUC9EbwD9iv0iznLHlzZhpH+bkNRwF1EroMCoOLH45ei7b0BTIqWoTSWjfKxw XMfcW/MeEyag0AmGSXdv9sBmk8EXFs89Nszb/LbArumY/OeLhCbnrKll+Cq7MPTt8Aly CO88ZvjxW9hGSwIAax8/0ob04T/bh7VKODrw9s8aQMqSYXTOO4QPnFHE4Z3Xpnspy5/8 IFTg== Received: by 10.50.42.132 with SMTP id o4mr8048477igl.41.1333443061362; Tue, 03 Apr 2012 01:51:01 -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.231.5.205 with SMTP id 13csp20488ibw; Tue, 3 Apr 2012 01:51:00 -0700 (PDT) Received: by 10.68.200.199 with SMTP id ju7mr27078829pbc.122.1333443060557; Tue, 03 Apr 2012 01:51:00 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id p7si24386575pbk.344.2012.04.03.01.51.00 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 Apr 2012 01:51:00 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by pbcxa12 with SMTP id xa12so5999765pbc.37 for ; Tue, 03 Apr 2012 01:51:00 -0700 (PDT) Received: by 10.68.229.33 with SMTP id sn1mr27765597pbc.59.1333443060104; Tue, 03 Apr 2012 01:51:00 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id a9sm15866624pbo.48.2012.04.03.01.50.57 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 Apr 2012 01:50:59 -0700 (PDT) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: grant.likely@secretlab.ca, linus.walleij@stericsson.com, ben@simtec.co.uk, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] ARM: EXYNOS: Fix compiler warning in gpio-samsung.c file Date: Tue, 3 Apr 2012 14:12:55 +0530 Message-Id: <1333442575-8777-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQnXTru5g+yFloe8ODmEUXCLZ8V87s1YnB9IiFNTdjdpOfhtZ+K77pfgJVf0Ubu75DRKZIX3 Fixes the following warning when "SAMSUNG EXYNOS5" is not selected: warning: ‘exynos5_gpios_1’ defined but not used [-Wunused-variable] warning: ‘exynos5_gpios_2’ defined but not used [-Wunused-variable] warning: ‘exynos5_gpios_3’ defined but not used [-Wunused-variable] warning: ‘exynos5_gpios_4’ defined but not used [-Wunused-variable] Signed-off-by: Sachin Kamat --- drivers/gpio/gpio-samsung.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c index 4627787..19d6fc0 100644 --- a/drivers/gpio/gpio-samsung.c +++ b/drivers/gpio/gpio-samsung.c @@ -2382,8 +2382,8 @@ static struct samsung_gpio_chip exynos4_gpios_3[] = { #endif }; -static struct samsung_gpio_chip exynos5_gpios_1[] = { #ifdef CONFIG_ARCH_EXYNOS5 +static struct samsung_gpio_chip exynos5_gpios_1[] = { { .chip = { .base = EXYNOS5_GPA0(0), @@ -2541,11 +2541,11 @@ static struct samsung_gpio_chip exynos5_gpios_1[] = { .to_irq = samsung_gpiolib_to_irq, }, }, -#endif }; +#endif -static struct samsung_gpio_chip exynos5_gpios_2[] = { #ifdef CONFIG_ARCH_EXYNOS5 +static struct samsung_gpio_chip exynos5_gpios_2[] = { { .chip = { .base = EXYNOS5_GPE0(0), @@ -2602,11 +2602,11 @@ static struct samsung_gpio_chip exynos5_gpios_2[] = { }, }, -#endif }; +#endif -static struct samsung_gpio_chip exynos5_gpios_3[] = { #ifdef CONFIG_ARCH_EXYNOS5 +static struct samsung_gpio_chip exynos5_gpios_3[] = { { .chip = { .base = EXYNOS5_GPV0(0), @@ -2638,11 +2638,11 @@ static struct samsung_gpio_chip exynos5_gpios_3[] = { .label = "GPV4", }, }, -#endif }; +#endif -static struct samsung_gpio_chip exynos5_gpios_4[] = { #ifdef CONFIG_ARCH_EXYNOS5 +static struct samsung_gpio_chip exynos5_gpios_4[] = { { .chip = { .base = EXYNOS5_GPZ(0), @@ -2650,8 +2650,8 @@ static struct samsung_gpio_chip exynos5_gpios_4[] = { .label = "GPZ", }, }, -#endif }; +#endif #if defined(CONFIG_ARCH_EXYNOS) && defined(CONFIG_OF)