diff options
| author | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
| commit | c74a7469f97c0f40b46e82ee979f9fb1bb6e847c (patch) | |
| tree | f2690a1a916b73ef94657fbf0e0141ae57701825 /arch/powerpc/platforms/8xx/m8xx_setup.c | |
| parent | 6f15a7de86c8cf2dc09fc9e6d07047efa40ef809 (diff) | |
| parent | 500775074f88d9cf5416bed2ca19592812d62c41 (diff) | |
Merge drm/drm-next into drm-intel-next-queued
We need a backmerge to get DP_DPCD_REV_14 before we push other
i915 changes to dinq that could break compilation.
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'arch/powerpc/platforms/8xx/m8xx_setup.c')
| -rw-r--r-- | arch/powerpc/platforms/8xx/m8xx_setup.c | 11 | 
1 files changed, 4 insertions, 7 deletions
| diff --git a/arch/powerpc/platforms/8xx/m8xx_setup.c b/arch/powerpc/platforms/8xx/m8xx_setup.c index 2188d691a40f..027c42d8966c 100644 --- a/arch/powerpc/platforms/8xx/m8xx_setup.c +++ b/arch/powerpc/platforms/8xx/m8xx_setup.c @@ -169,15 +169,14 @@ int mpc8xx_set_rtc_time(struct rtc_time *tm)  {  	sitk8xx_t __iomem *sys_tmr1;  	sit8xx_t __iomem *sys_tmr2; -	int time; +	time64_t time;  	sys_tmr1 = immr_map(im_sitk);  	sys_tmr2 = immr_map(im_sit); -	time = mktime(tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, -	              tm->tm_hour, tm->tm_min, tm->tm_sec); +	time = rtc_tm_to_time64(tm);  	out_be32(&sys_tmr1->sitk_rtck, KAPWR_KEY); -	out_be32(&sys_tmr2->sit_rtc, time); +	out_be32(&sys_tmr2->sit_rtc, (u32)time);  	out_be32(&sys_tmr1->sitk_rtck, ~KAPWR_KEY);  	immr_unmap(sys_tmr2); @@ -192,9 +191,7 @@ void mpc8xx_get_rtc_time(struct rtc_time *tm)  	/* Get time from the RTC. */  	data = in_be32(&sys_tmr->sit_rtc); -	to_tm(data, tm); -	tm->tm_year -= 1900; -	tm->tm_mon -= 1; +	rtc_time64_to_tm(data, tm);  	immr_unmap(sys_tmr);  	return;  } |