unicore32 rtc driver fix: cleanup irq_set_freq and irq_set_state
authorGuan Xuetao <gxt@mprc.pku.edu.cn>
Tue, 29 Mar 2011 12:38:51 +0000 (20:38 +0800)
committerGuan Xuetao <gxt@mprc.pku.edu.cn>
Sat, 2 Apr 2011 08:17:18 +0000 (16:17 +0800)
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
arch/unicore32/kernel/rtc.c

index c5f068295b51c14b8e58eb875538e46647d8cf7e..8cad70b3302c86e08c8189e7c926b34c3ab78f2c 100644 (file)
@@ -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,