From patchwork Wed Nov 28 09:11:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 202400 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-qc0-f184.google.com (mail-qc0-f184.google.com [209.85.216.184]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 9BFAF2C0093 for ; Wed, 28 Nov 2012 20:18:20 +1100 (EST) Received: by mail-qc0-f184.google.com with SMTP id p9sf3052494qcr.11 for ; Wed, 28 Nov 2012 01:18:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=1IwuHOeHiPfcph7U7u3BJqqh4JZVYsvpTHkDQJ4zxuY=; b=O4yMZSXbinVO6+RQ7PYpHOCvz+Hs71spqaEG2uN+5XrQxthxx4nhqAtW1J5EtaBwnk TMRRbkXJZ9e3d3zxTglDUIQCyim4VCEMSH8Q9S5tdmZvDmrhbZf6a2/+sxI5Hsg3VfmE HESGJ3fIFKmEUN4ZZcmIsSMY8fciPlD4ur1S+nIQFuMxAsXSRZfxxCfHAqSWIIOndpIc l3+gZHhPIb+VTkOcnTK05KialTu9eH3RmMEVrQ+0MRbvXLV1rtt7rjlvATlBww+nLSAk VcedCCVpG2WWhwiVprhDGVmIvWu3q+560p0ASAry7tIgWgoDIOWGVENg8/rBsACAB3zG 6i6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:x-gm-message-state:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=1IwuHOeHiPfcph7U7u3BJqqh4JZVYsvpTHkDQJ4zxuY=; b=iymo1N0ieDvKK+UTUbd1BYxoIcvwKXQlCHGyAQmn/IoF3jRunr7/90bYWOzf1Y2/Vr Q+bFVrz0vzyKzrCyAIK2AVOWv4KqpCqA0Z+Fo6wbjbOHl+ig7AOiWu72wPTaG13EPopf LpphloRNz1g/4qCdeHBV2CNb9GdnKBA+kDbFQ7aI5P/nQ9z/bi7e5oiToanBon/edVAm /4Gi38oy5Y3s2Wb5kXL2MDzqic2PssVxb0MqC/24pEYuJ78MYg06XV18dMMD1bfQZtnU DBluhMULc48Sbd77tkho7pNZbHvvgXF61w4gABGjKxhp6/3vu1XOw2J6d9TUMa55/mrY sARQ== Received: by 10.50.45.226 with SMTP id q2mr7642996igm.0.1354094296920; Wed, 28 Nov 2012 01:18:16 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.208.2 with SMTP id ma2ls4182864igc.22.canary; Wed, 28 Nov 2012 01:18:16 -0800 (PST) Received: by 10.66.86.138 with SMTP id p10mr4151490paz.14.1354094296273; Wed, 28 Nov 2012 01:18:16 -0800 (PST) Received: by 10.66.86.138 with SMTP id p10mr4151488paz.14.1354094296263; Wed, 28 Nov 2012 01:18:16 -0800 (PST) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by gmr-mx.google.com with ESMTPS id uz6si4077621pbc.0.2012.11.28.01.18.16 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Nov 2012 01:18:16 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.46 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.46; Received: by mail-pb0-f46.google.com with SMTP id wy7so9582638pbc.19 for ; Wed, 28 Nov 2012 01:18:16 -0800 (PST) Received: by 10.66.88.37 with SMTP id bd5mr50455251pab.75.1354094296087; Wed, 28 Nov 2012 01:18:16 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id c5sm12225722pav.33.2012.11.28.01.18.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Nov 2012 01:18:15 -0800 (PST) From: Sachin Kamat To: rtc-linux@googlegroups.com Cc: a.zummo@towertech.it, akpm@linux-foundation.org, sachin.kamat@linaro.org Subject: [rtc-linux] [PATCH Resend] rtc: Remove unused code from rtc-dev.c Date: Wed, 28 Nov 2012 14:41:43 +0530 Message-Id: <1354093903-324-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQlHq3wMuCtTTG/po5Rv9wyTyeJjdhVGBJkM6s5ZYtUgdQap83Pis+g2B9znk3FOxK+XEEaL X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.160.46 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , This code is under #if 0 and not used. Signed-off-by: Sachin Kamat --- drivers/rtc/rtc-dev.c | 19 ------------------- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/drivers/rtc/rtc-dev.c b/drivers/rtc/rtc-dev.c index cace6d3..9a86b4b 100644 --- a/drivers/rtc/rtc-dev.c +++ b/drivers/rtc/rtc-dev.c @@ -379,25 +379,6 @@ static long rtc_dev_ioctl(struct file *file, err = put_user(rtc->irq_freq, (unsigned long __user *)uarg); break; -#if 0 - case RTC_EPOCH_SET: -#ifndef rtc_epoch - /* - * There were no RTC clocks before 1900. - */ - if (arg < 1900) { - err = -EINVAL; - break; - } - rtc_epoch = arg; - err = 0; -#endif - break; - - case RTC_EPOCH_READ: - err = put_user(rtc_epoch, (unsigned long __user *)uarg); - break; -#endif case RTC_WKALM_SET: mutex_unlock(&rtc->ops_lock); if (copy_from_user(&alarm, uarg, sizeof(alarm)))