From patchwork Tue Mar 29 14:43:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guan Xuetao X-Patchwork-Id: 88792 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pv0-f184.google.com (mail-pv0-f184.google.com [74.125.83.184]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id B24F4B6EE9 for ; Wed, 30 Mar 2011 01:44:03 +1100 (EST) Received: by pvf33 with SMTP id 33sf38089pvf.11 for ; Tue, 29 Mar 2011 07:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:x-beenthere:received-spf:from:to:cc:subject :date:message-id:mime-version:x-mailer:thread-index :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:content-language; bh=M3KyoXhL+oFfqz7DiJzGXFMthvLEwIjZHvKCvllER78=; b=u8ktW9xf1Hra13Q7gko9wj8xkBlP6augmCOfRLtSgcidudPzkJ/V3fUF6u0ggPFrUr 1baQQ4Dy4XbqN2wyX5UKi/xPO6ouARExpxrTyy1OobatZfaq21UF6/5J8/00U6E/Dwzd 7+r71j7dkYc/0CQ2lPILVwssTRtUHR7mb0j/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:from:to:cc:subject:date:message-id :mime-version:x-mailer:thread-index: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:content-language; b=MQPXipNekp1FtRu5WZZEOFdyeCmdR78bpczOoAZeu6+9ss9Gv+wv8/VEd9ZD4yFVrS AXGOd6o3svg/OuSoDTNxPqx1I7dwxU3Gi3VBRlL/pOPe+MvvOb7ugC33wHK5zYeS7RZ0 05WXpQqFlXsUgctugc4pKbBpsZAlw+ri3EeFY= Received: by 10.143.17.11 with SMTP id u11mr490157wfi.28.1301409840245; Tue, 29 Mar 2011 07:44:00 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.142.201.17 with SMTP id y17ls362256wff.0.p; Tue, 29 Mar 2011 07:43:59 -0700 (PDT) Received: by 10.142.196.11 with SMTP id t11mr4929371wff.36.1301409839095; Tue, 29 Mar 2011 07:43:59 -0700 (PDT) Received: by 10.142.196.11 with SMTP id t11mr4929370wff.36.1301409839050; Tue, 29 Mar 2011 07:43:59 -0700 (PDT) Received: from mprc.pku.edu.cn (mprc.pku.edu.cn [162.105.203.9]) by gmr-mx.google.com with ESMTPS id 28si5471973wfb.2.2011.03.29.07.43.54 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2011 07:43:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of gxt@mprc.pku.edu.cn designates 162.105.203.9 as permitted sender) client-ip=162.105.203.9; Received: from EpipPC ([162.105.80.111]) by mprc.pku.edu.cn (8.13.8/8.13.8) with ESMTP id p2TErMSG023338; Tue, 29 Mar 2011 22:53:26 +0800 From: "Guan Xuetao" To: , "john stultz" , "Thomas Gleixner" Cc: "Arnd Bergmann" , "'Guan Xuetao'" , , Subject: [rtc-linux] [PATCH] unicore32 rtc driver fix: cleanup irq_set_freq and irq_set_state Date: Tue, 29 Mar 2011 22:43:31 +0800 Message-ID: <019801cbee1f$af8a1490$0e9e3db0$@mprc.pku.edu.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AcvuH0Ye8MupKhvVQsiNdfhYLTAWSA== X-Original-Sender: gxt@mprc.pku.edu.cn X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of gxt@mprc.pku.edu.cn designates 162.105.203.9 as permitted sender) smtp.mail=gxt@mprc.pku.edu.cn 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: , Content-Language: zh-cn Signed-off-by: Guan Xuetao --- arch/unicore32/kernel/rtc.c | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/arch/unicore32/kernel/rtc.c b/arch/unicore32/kernel/rtc.c index c5f0682..8cad70b 100644 --- a/arch/unicore32/kernel/rtc.c +++ b/arch/unicore32/kernel/rtc.c @@ -88,11 +88,6 @@ static int puv3_rtc_setpie(struct device *dev, int enabled) return 0; } -static int puv3_rtc_setfreq(struct device *dev, int freq) -{ - return 0; -} - /* Time read/write */ static int puv3_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm) @@ -214,8 +209,6 @@ static const struct rtc_class_ops puv3_rtcops = { .set_time = puv3_rtc_settime, .read_alarm = puv3_rtc_getalarm, .set_alarm = puv3_rtc_setalarm, - .irq_set_freq = puv3_rtc_setfreq, - .irq_set_state = puv3_rtc_setpie, .proc = puv3_rtc_proc, }; @@ -294,8 +287,6 @@ static int puv3_rtc_probe(struct platform_device *pdev) puv3_rtc_enable(pdev, 1); - puv3_rtc_setfreq(&pdev->dev, 1); - /* register RTC and exit */ rtc = rtc_device_register("pkunity", &pdev->dev, &puv3_rtcops,