linux/drivers/scsi/smartpqi
Arnd Bergmann ed10858ead 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: 6c223761eb ("smartpqi: initial commit of Microsemi smartpqi driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-02-22 18:41:42 -05:00
..
Kconfig scsi: smartpqi: update Kconfig 2016-09-02 06:27:28 -04:00
Makefile
smartpqi.h scsi: smartpqi: switch to pci_alloc_irq_vectors 2016-11-08 17:30:00 -05:00
smartpqi_init.c scsi: smartpqi: fix time handling 2017-02-22 18:41:42 -05:00
smartpqi_sas_transport.c
smartpqi_sis.c scsi: smartpqi: add kdump support 2016-09-02 06:21:38 -04:00
smartpqi_sis.h scsi: smartpqi: add kdump support 2016-09-02 06:21:38 -04:00