|
@@ -273,9 +273,6 @@ static int omap_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled)
|
|
/* this hardware doesn't support "don't care" alarm fields */
|
|
/* this hardware doesn't support "don't care" alarm fields */
|
|
static int tm2bcd(struct rtc_time *tm)
|
|
static int tm2bcd(struct rtc_time *tm)
|
|
{
|
|
{
|
|
- if (rtc_valid_tm(tm) != 0)
|
|
|
|
- return -EINVAL;
|
|
|
|
-
|
|
|
|
tm->tm_sec = bin2bcd(tm->tm_sec);
|
|
tm->tm_sec = bin2bcd(tm->tm_sec);
|
|
tm->tm_min = bin2bcd(tm->tm_min);
|
|
tm->tm_min = bin2bcd(tm->tm_min);
|
|
tm->tm_hour = bin2bcd(tm->tm_hour);
|
|
tm->tm_hour = bin2bcd(tm->tm_hour);
|