# Re: \[PATCH v2 4/6\] rtc: parisc: provide rtc\_class\_ops directly

- From: Arnd Bergmann \<arnd@arndb.de\>
- Date: 2016-04-27 10:11:11 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2016/04/4740040
- Thread: https://ratatoskr.run/linuxppc-dev/2016/04/4739271/t.md

```text
On Wednesday 27 April 2016 08:22:24 kbuild test robot wrote:
> 
>    256  
>    257          memset(tm, 0, sizeof(*tm));
>    258          if (pdc_tod_read(&tod_data) < 0)
>    259                  return -EOPNOTSUPP;
>    260  
>    261          /* we treat tod_sec as unsigned, so this can work until year 2106 */
>  > 262          rtc_time64_to_tm(tod_data.tod_sec, &tm);
>    263          return rtc_valid_tm(tm);
>    264  }
> 

Fixed, thanks!

	Arnd
```
