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: 13038 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 444DE23FC1 for ; Wed, 21 Nov 2012 10:23:59 +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 E0878A18178 for ; Wed, 21 Nov 2012 10:23:58 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so9576558iej.11 for ; Wed, 21 Nov 2012 02:23:58 -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=cjVxc3L4bcP3Y8dDBr2Ca8Xp7XoybgBCwqNe6vC9Lxg=; b=bTR0jp5pKHY2X23W7IU7hxIANqrY65O9PmN2BbxBUpMvDOVkWYsnLg7EGWF6Bhy1cF Vt9JCKJ2cigJdsr3YcAbx6S/bjD1QSpnx/I8oNsFNji1vcOi9v+Zv4mdohZG5/xvpCC/ Fkh1B3rHCK46biTGOE1xwPXE70RWSJ0zfeIaN3FBWxsjirCW9b1N/AHLem4ZpgwUdFCa xMrmTy48DTwvqejj63xpUGUPmCpTcIE6a81XX6wNn1lQ+i4Cz3DDrZTpJLr7peRamiw9 KGZsdrpqkZsi2Ywd1RTJf1RImIXzy1B2dUdBuUyobJfnF0pTOe0a8gX+QCcyma6tM5La /lZw== Received: by 10.50.187.197 with SMTP id fu5mr12932563igc.70.1353493438392; Wed, 21 Nov 2012 02:23:58 -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 n20csp5661igt; Wed, 21 Nov 2012 02:23:58 -0800 (PST) Received: by 10.66.89.9 with SMTP id bk9mr16217033pab.67.1353493437764; Wed, 21 Nov 2012 02:23:57 -0800 (PST) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by mx.google.com with ESMTPS id zw5si1713pbc.247.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.53 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.53; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.53 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-pb0-f53.google.com with SMTP id jt11so4807524pbb.40 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: [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: ALoCoQk4JlSAwRIKKhVrHsTnEpfkMiXBTGwfxzSqiNZCGw53t146zMl//ss6Gk4WjXSRLKvxTBco 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)))