Message ID | 1422063840-2837-8-git-send-email-john.stultz@linaro.org |
---|---|
State | Accepted |
Commit | 966301a23ef8ff0a4c5f71b585dafbf334808574 |
Headers | show |
diff --git a/drivers/rtc/hctosys.c b/drivers/rtc/hctosys.c index 2153b52..6c719f2 100644 --- a/drivers/rtc/hctosys.c +++ b/drivers/rtc/hctosys.c @@ -45,13 +45,6 @@ static int __init rtc_hctosys(void) } - err = rtc_valid_tm(&tm); - if (err) { - dev_err(rtc->dev.parent, - "hctosys: invalid date/time\n"); - goto err_invalid; - } - tv64.tv_sec = rtc_tm_to_time64(&tm); err = do_settimeofday64(&tv64); @@ -63,7 +56,6 @@ static int __init rtc_hctosys(void) tm.tm_hour, tm.tm_min, tm.tm_sec, (long long) tv64.tv_sec); -err_invalid: err_read: rtc_class_close(rtc);