From patchwork Tue May 22 08:43:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 8853 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 45E0524009 for ; Tue, 22 May 2012 08:54:26 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 06C00A18AD2 for ; Tue, 22 May 2012 08:54:25 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so6305577yen.11 for ; Tue, 22 May 2012 01:54:25 -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=rGC+jMRr4fhSbXHrcTvXGTDs8zA6powxGq8xvKXzASY=; b=C+ZAmjF1v1RN5NXWzH8GiTCFef4mqgDskL7fmBnB9JZtc4tv12+NCXGpUksvw6ESI6 SSk1j09G2lweHf+8r2hsDVGRmAuO5FGI3076KJ9UCh+ZrCP455N6WwWhSdZGM/xZx59o L1zxDLaEFliVlQ5fuMwtNJfnXsyhnGjy4mM5Hfd1QaQhH/LD86iFF/LwOPGvnnsnghlc Coy5AWXZX7uQLpMzzXS7TAkJS48NfvYHT2wk6pAZx5bTI3oHs17+5ENwkpnBbZAGctaQ qLoPt6wDwMnYvtJ2+6t/QRdC4S/jQTznqaQX6XDcv3ZdwnY6INVoLZo6YZAMvKkjPni5 XBFw== Received: by 10.50.163.99 with SMTP id yh3mr8648944igb.53.1337676865283; Tue, 22 May 2012 01:54:25 -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.35.72 with SMTP id o8csp349625ibd; Tue, 22 May 2012 01:54:24 -0700 (PDT) Received: by 10.68.129.198 with SMTP id ny6mr63797497pbb.22.1337676864603; Tue, 22 May 2012 01:54:24 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id hq10si14321522pbc.60.2012.05.22.01.54.24 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 May 2012 01:54:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.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 danh15 with SMTP id h15so9512082dan.37 for ; Tue, 22 May 2012 01:54:24 -0700 (PDT) Received: by 10.68.125.167 with SMTP id mr7mr22841605pbb.104.1337676864289; Tue, 22 May 2012 01:54:24 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pj5sm26043461pbb.51.2012.05.22.01.54.18 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 May 2012 01:54:23 -0700 (PDT) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: a.zummo@towertech.it, ben@simtec.co.uk, akpm@linux-foundation.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] s3c-rtc: Fix compiler warning Date: Tue, 22 May 2012 14:13:19 +0530 Message-Id: <1337676199-350-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: ALoCoQlgOYz8qJIs+yws9+KL3bN655zdGEfP6eLaTgMeXVmst8Nk7qY3NTbZ1gL+yvwUepb5KD/H Fixes the below warning: rtc-s3c.c:673:32: warning: ‘s3c_rtc_drv_data_array’ defined but not used [-Wunused-variable] Signed-off-by: Sachin Kamat --- drivers/rtc/rtc-s3c.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index 3f3a297..7e6af0b 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c @@ -670,6 +670,7 @@ static int s3c_rtc_resume(struct platform_device *pdev) #define s3c_rtc_resume NULL #endif +#ifdef CONFIG_OF static struct s3c_rtc_drv_data s3c_rtc_drv_data_array[] = { [TYPE_S3C2410] = { TYPE_S3C2410 }, [TYPE_S3C2416] = { TYPE_S3C2416 }, @@ -677,7 +678,6 @@ static struct s3c_rtc_drv_data s3c_rtc_drv_data_array[] = { [TYPE_S3C64XX] = { TYPE_S3C64XX }, }; -#ifdef CONFIG_OF static const struct of_device_id s3c_rtc_dt_match[] = { { .compatible = "samsung,s3c2410-rtc",