X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Frtc%2Frtc-hym8563.c;h=b1b4746a0eab5af524791d0868d8132d8014be4b;hb=07e5bac8255bb990b8a3b772bcfcb1ea1c63769f;hp=097325d96db566e08ec8b70aaa9d595f6a044235;hpb=50c36504fc6090847f1fbdc7cf4852ae16d6e500;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/rtc/rtc-hym8563.c b/drivers/rtc/rtc-hym8563.c index 097325d96db5..b1b4746a0eab 100644 --- a/drivers/rtc/rtc-hym8563.c +++ b/drivers/rtc/rtc-hym8563.c @@ -144,7 +144,7 @@ static int hym8563_rtc_set_time(struct device *dev, struct rtc_time *tm) * it does not seem to carry it over a subsequent write/read. * So we'll limit ourself to 100 years, starting at 2000 for now. */ - buf[6] = tm->tm_year - 100; + buf[6] = bin2bcd(tm->tm_year - 100); /* * CTL1 only contains TEST-mode bits apart from stop,