aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2017-02-17 16:03:52 +0100
committerMartin K. Petersen <[email protected]>2017-02-22 18:41:42 -0500
commited10858eadd4988260c6bc7d75fc25176342b5a7 (patch)
tree7c8c8f35560d44d50939533e32421d28510b7062 /lib/mpi/mpi-cmp.c
parent0662cc968aceaca34848e63f431e585f4f71f746 (diff)
scsi: smartpqi: fix time handling
When we have turned off RTC support, the smartpqi driver fails to build: ERROR: "rtc_time64_to_tm" [drivers/scsi/smartpqi/smartpqi.ko] undefined! This is easily avoided by using the generic 'struct tm' based helper rather than the RTC specific one. While fixing this, I noticed that even though the driver uses time64_t for storing seconds, it gets them from the old 32-bit struct timeval. To address this, we can simplify the code by calling ktime_get_real_seconds() directly. Fixes: 6c223761eb54 ("smartpqi: initial commit of Microsemi smartpqi driver") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Don Brace <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions