aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorMike Frysinger <michael.frysinger@analog.com>2008-02-06 04:38:50 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-06 13:41:14 -0500
commit48c1a56b4bf936590ddbee93bf7accf703ec0411 (patch)
treef1e06a005ce42ebd59aa3155e1d5e1e0c2f812ac /drivers/rtc
parent68db30472df36671cc397654c42802c93ef19f19 (diff)
Blackfin RTC driver: shave off another memcpy() by using assignment.
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com> Acked-by: Alessandro Zummo <alessandro.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-bfin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-bfin.c b/drivers/rtc/rtc-bfin.c
index a4ed2f82a09b..69810a2fc43b 100644
--- a/drivers/rtc/rtc-bfin.c
+++ b/drivers/rtc/rtc-bfin.c
@@ -325,7 +325,7 @@ static int bfin_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
325{ 325{
326 struct bfin_rtc *rtc = dev_get_drvdata(dev); 326 struct bfin_rtc *rtc = dev_get_drvdata(dev);
327 dev_dbg_stamp(dev); 327 dev_dbg_stamp(dev);
328 memcpy(&alrm->time, &rtc->rtc_alarm, sizeof(struct rtc_time)); 328 alrm->time = rtc->rtc_alarm;
329 alrm->enabled = !!(bfin_read_RTC_ICTL() & (RTC_ISTAT_ALARM | RTC_ISTAT_ALARM_DAY)); 329 alrm->enabled = !!(bfin_read_RTC_ICTL() & (RTC_ISTAT_ALARM | RTC_ISTAT_ALARM_DAY));
330 return 0; 330 return 0;
331} 331}