Skip to content

Commit

Permalink
unicore32 rtc driver fix: cleanup irq_set_freq and irq_set_state
Browse files Browse the repository at this point in the history
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
  • Loading branch information
Guan Xuetao committed Apr 2, 2011
1 parent 0bfdc8e commit 858e4f4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions arch/unicore32/kernel/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
};

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 858e4f4

Please sign in to comment.