aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/zynq-fpga.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-11-25 16:09:10 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-26 17:13:33 -0800
commit2bc29a1abc5c1b89576f8ae864cce9c07d18fd44 (patch)
tree6d2e107e9e0a4efac9a6603ac19d27ab5bf01508 /drivers/fpga/zynq-fpga.c
parent02c34ccc1d2d528d2de2897881b97933363432b5 (diff)
staging: gdm72xx: Replace timeval with ktime_t
struct sdu_stamp in the gdm_sdio.h is a timeval type. 'struct timeval now' is used for calculating elapsed time. 32-bit systems using 'struct timeval' will break in the year 2038, so we have to replace that code with more appropriate types. This patch changes the gdm72xx driver to use ktime_t. ktime_get() is better than using do_gettimeofday(), because it uses the monotonic clock. ktime_sub are used to subtract two ktime variables. Build tested this by saying Y to WIMAX_GDM72XX. Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/zynq-fpga.c')
0 files changed, 0 insertions, 0 deletions