From patchwork Wed Nov 21 10:17: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: 200624 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pa0-f56.google.com (mail-pa0-f56.google.com [209.85.220.56]) (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 68D6C2C009F for ; Wed, 21 Nov 2012 21:24:01 +1100 (EST) Received: by mail-pa0-f56.google.com with SMTP id rl6sf745486pac.11 for ; Wed, 21 Nov 2012 02:23:59 -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=wEMnpWrnDRCMxdNfcBlH7vFC9NbbPEGH8EqneSKPT15St53hAgrMDZ+PfGBf7EyzB2 PhYALtSwUkDb4i5Zck/jGaJlcyuVOwEYHzDqXGnxsH1XBS8xu2eGDMQYe68WERTmWSt7 rphNzX+G+H9NdbAjKx6lXiV9LO+31q/KK6jj4f05/gtU2+IH3rije0NKnZZ3uksJkLIZ Hdj4H2+xHSDblA4Jx9zuE23jeqwWPLgvscHeUyiKvJi7VB5b6g8EJk76Sp/DLsLaQ8Rv mJjAasFLx1e/hhVWI86sljaSlkkkHlMUWCStsZ5rEUrPIXLn4Ydkc72nuogtUi1wnAIu WTFA== 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=iSvGvxzAHrexXEPxh/5ooIHk8uGqXW/PGbkCMhxfApeNPSemuipSxBHjgidsTBPECP l+6YKbz46abgnImWkAVVgO7M2uVHlPxtiq4bdqpCE71e7dqojxHzZSHr4z/XXKXCQ/uo NgR5Nnq4c230xzoDoSAisRVdv7Y4LKxnehf/G7WqzqBee5lddh0+16eo60vHzNEbAkHw deApBoJJpOTlfiinVB29YZZn+F6dmImvkVzuZe9sTSD928do26jqDifsoDU5J8zNRE8l w4+KuATSbNrJ7zlNAeR0MVnM6lgMkuBtWtgnjcvHeOtTNBfNNGzu1SIs5trMt4VRZE3P IGkA== Received: by 10.50.158.227 with SMTP id wx3mr4795314igb.2.1353493438124; Wed, 21 Nov 2012 02:23:58 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.41.225 with SMTP id i1ls5020538igl.34.gmail; Wed, 21 Nov 2012 02:23:57 -0800 (PST) Received: by 10.66.79.6 with SMTP id f6mr4463063pax.3.1353493437324; Wed, 21 Nov 2012 02:23:57 -0800 (PST) Received: by 10.66.79.6 with SMTP id f6mr4463060pax.3.1353493437312; Wed, 21 Nov 2012 02:23:57 -0800 (PST) Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) by gmr-mx.google.com with ESMTPS id m8si2687969pav.2.2012.11.21.02.23.57 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Nov 2012 02:23:57 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.43 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.43; Received: by mail-pb0-f43.google.com with SMTP id wz17so6060224pbc.16 for ; Wed, 21 Nov 2012 02:23:57 -0800 (PST) Received: by 10.68.245.167 with SMTP id xp7mr58628732pbc.75.1353493437195; Wed, 21 Nov 2012 02:23:57 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id s7sm9754463paz.7.2012.11.21.02.23.54 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Nov 2012 02:23:56 -0800 (PST) From: Sachin Kamat To: rtc-linux@googlegroups.com Cc: a.zummo@towertech.it, sachin.kamat@linaro.org, patches@linaro.org Subject: [rtc-linux] [PATCH 1/1] rtc: Remove unused code from rtc-dev.c Date: Wed, 21 Nov 2012 15:47:43 +0530 Message-Id: <1353493063-1688-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQlM7XruGnIxUL8ZJfTmK4j8TCaP0+CmzeGE7J77zYP9/L0Ut+cKfWtGkI9SQ5MfolCwGIch X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.160.43 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)))