View | Details | Raw Unified
Collapse All | Expand All

(-) linux-2.4.23/arch/cris/drivers/ds1302.c (+1 lines)
 Lines 346-351    Link Here 
		{
		{
			struct rtc_time rtc_tm;
			struct rtc_time rtc_tm;
						
						
			memset(&rtc_tm, 0, sizeof (struct rtc_time));
			get_rtc_time(&rtc_tm);						
			get_rtc_time(&rtc_tm);						
			if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time)))
			if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time)))
				return -EFAULT;	
				return -EFAULT;	
(-) linux-2.4.23/arch/cris/drivers/pcf8563.c (+1 lines)
 Lines 220-225    Link Here 
		{
		{
			struct rtc_time tm;
			struct rtc_time tm;
			memset(&tm, 0, sizeof (struct rtc_time));
			get_rtc_time(&tm);
			get_rtc_time(&tm);
			if (copy_to_user((struct rtc_time *) arg, &tm, sizeof tm)) {
			if (copy_to_user((struct rtc_time *) arg, &tm, sizeof tm)) {
(-) linux-2.4.23/arch/m68k/bvme6000/rtc.c (+1 lines)
 Lines 54-59    Link Here 
		/* Ensure clock and real-time-mode-register are accessible */
		/* Ensure clock and real-time-mode-register are accessible */
		msr = rtc->msr & 0xc0;
		msr = rtc->msr & 0xc0;
		rtc->msr = 0x40;
		rtc->msr = 0x40;
		memset(&wtime, 0, sizeof(struct rtc_time));
		do {
		do {
			wtime.tm_sec =  BCD2BIN(rtc->bcd_sec);
			wtime.tm_sec =  BCD2BIN(rtc->bcd_sec);
			wtime.tm_min =  BCD2BIN(rtc->bcd_min);
			wtime.tm_min =  BCD2BIN(rtc->bcd_min);
(-) linux-2.4.23/arch/m68k/mvme16x/rtc.c (+1 lines)
 Lines 52-57    Link Here 
		cli();
		cli();
		/* Ensure clock and real-time-mode-register are accessible */
		/* Ensure clock and real-time-mode-register are accessible */
		rtc->ctrl = RTC_READ;
		rtc->ctrl = RTC_READ;
		memset(&wtime, 0, sizeof(struct rtc_time));
		wtime.tm_sec =  BCD2BIN(rtc->bcd_sec);
		wtime.tm_sec =  BCD2BIN(rtc->bcd_sec);
		wtime.tm_min =  BCD2BIN(rtc->bcd_min);
		wtime.tm_min =  BCD2BIN(rtc->bcd_min);
		wtime.tm_hour = BCD2BIN(rtc->bcd_hr);
		wtime.tm_hour = BCD2BIN(rtc->bcd_hr);
(-) linux-2.4.23/arch/ppc64/kernel/rtc.c (+1 lines)
 Lines 96-101    Link Here 
	switch (cmd) {
	switch (cmd) {
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
	{
	{
		memset(&wtime, 0, sizeof(struct rtc_time));
		ppc_md.get_rtc_time(&wtime);
		ppc_md.get_rtc_time(&wtime);
		break;
		break;
	}
	}
(-) linux-2.4.23/drivers/acorn/char/i2c.c (+1 lines)
 Lines 166-171    Link Here 
		break;
		break;
	case RTC_RD_TIME:
	case RTC_RD_TIME:
		memset(&rtctm, 0, sizeof(struct rtc_time));
		get_rtc_time(&rtc_raw, &year);
		get_rtc_time(&rtc_raw, &year);
		rtctm.tm_sec  = rtc_raw.secs;
		rtctm.tm_sec  = rtc_raw.secs;
		rtctm.tm_min  = rtc_raw.mins;
		rtctm.tm_min  = rtc_raw.mins;
(-) linux-2.4.23/drivers/char/ds1286.c (-1 / +2 lines)
 Lines 173-179    Link Here 
		 * means "don't care" or "match all". Only the tm_hour,
		 * means "don't care" or "match all". Only the tm_hour,
		 * tm_min, and tm_sec values are filled in.
		 * tm_min, and tm_sec values are filled in.
		 */
		 */
		memset(&wtime, 0, sizeof(struct rtc_time));
		ds1286_get_alm_time(&wtime);
		ds1286_get_alm_time(&wtime);
		break;
		break;
	}
	}
 Lines 216-221    Link Here 
	}
	}
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
	{
	{
		memset(&wtime, 0, sizeof(struct rtc_time));
		ds1286_get_time(&wtime);
		ds1286_get_time(&wtime);
		break;
		break;
	}
	}
(-) linux-2.4.23/drivers/char/efirtc.c (+1 lines)
 Lines 118-123    Link Here 
static void
static void
convert_from_efi_time(efi_time_t *eft, struct rtc_time *wtime)
convert_from_efi_time(efi_time_t *eft, struct rtc_time *wtime)
{
{
	memset(wtime, 0, sizeof(struct rtc_time));
	wtime->tm_sec  = eft->second;
	wtime->tm_sec  = eft->second;
	wtime->tm_min  = eft->minute;
	wtime->tm_min  = eft->minute;
	wtime->tm_hour = eft->hour;
	wtime->tm_hour = eft->hour;
(-) linux-2.4.23/drivers/char/ip27-rtc.c (+1 lines)
 Lines 83-88    Link Here 
	switch (cmd) {
	switch (cmd) {
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
	{
	{
		memset(&wtime, 0, sizeof(struct rtc_time));
		get_rtc_time(&wtime);
		get_rtc_time(&wtime);
		break;
		break;
	}
	}
(-) linux-2.4.23/drivers/char/mips_rtc.c (+1 lines)
 Lines 82-87    Link Here 
	switch (cmd) {
	switch (cmd) {
	case RTC_RD_TIME:	/* Read the time/date from RTC  */
	case RTC_RD_TIME:	/* Read the time/date from RTC  */
		memset(&rtc_tm, 0, sizeof(struct rtc_time));
		curr_time = rtc_get_time();
		curr_time = rtc_get_time();
		to_tm(curr_time, &rtc_tm);
		to_tm(curr_time, &rtc_tm);
		rtc_tm.tm_year -= 1900;
		rtc_tm.tm_year -= 1900;
(-) linux-2.4.23/drivers/char/rtc.c (-1 / +2 lines)
 Lines 362-368    Link Here 
		 * means "don't care" or "match all". Only the tm_hour,
		 * means "don't care" or "match all". Only the tm_hour,
		 * tm_min, and tm_sec values are filled in.
		 * tm_min, and tm_sec values are filled in.
		 */
		 */
		memset(&wtime, 0, sizeof(struct rtc_time));
		get_rtc_alm_time(&wtime);
		get_rtc_alm_time(&wtime);
		break; 
		break; 
	}
	}
 Lines 406-411    Link Here 
	}
	}
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
	{
	{
		memset(&wtime, 0, sizeof(struct rtc_time));
		get_rtc_time(&wtime);
		get_rtc_time(&wtime);
		break;
		break;
	}
	}
(-) linux-2.4.23/drivers/hil/hp_sdc_rtc.c (+2 lines)
 Lines 561-566    Link Here 
        }
        }
        case RTC_ALM_READ:      /* Read the present alarm time */
        case RTC_ALM_READ:      /* Read the present alarm time */
        {
        {
		memset(&ttime, 0, sizeof(struct timeval));
		if (hp_sdc_rtc_read_mt(&ttime)) return -EFAULT;
		if (hp_sdc_rtc_read_mt(&ttime)) return -EFAULT;
                break;
                break;
        }
        }
 Lines 609-614    Link Here 
        }
        }
        case RTC_RD_TIME:       /* Read the time/date from RTC  */
        case RTC_RD_TIME:       /* Read the time/date from RTC  */
        {
        {
		memset(&wtime, 0, sizeof(struct rtc_time));
		if (hp_sdc_rtc_read_bbrtc(&wtime)) return -EFAULT;
		if (hp_sdc_rtc_read_bbrtc(&wtime)) return -EFAULT;
                break;
                break;
        }
        }
(-) linux-2.4.23/drivers/macintosh/rtc.c (+1 lines)
 Lines 64-69    Link Here 
	case RTC_RD_TIME:
	case RTC_RD_TIME:
		if (ppc_md.get_rtc_time)
		if (ppc_md.get_rtc_time)
		{
		{
			memset(&rtc_tm, 0, sizeof(struct rtc_time));
			get_rtc_time(&rtc_tm);
			get_rtc_time(&rtc_tm);
			if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time)))
			if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time)))
(-) linux-2.4.23/drivers/sbus/char/rtc.c (+1 lines)
 Lines 89-94    Link Here 
	switch (cmd)
	switch (cmd)
	{
	{
	case RTCGET:
	case RTCGET:
		memset(&rtc_tm, 0, sizeof(struct rtc_time));
		get_rtc_time(&rtc_tm);
		get_rtc_time(&rtc_tm);
		if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time)))
		if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time)))