rtc: fix the error in the function of cmos_set_alarm