]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ide: pdc202xx_new: Replace timeval with ktime_t
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Thu, 22 Oct 2015 12:45:50 +0000 (18:15 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Nov 2015 16:51:08 +0000 (11:51 -0500)
commit353b39d1b1511376aca71bc3aba62831370561ca
tree534e14adf4e391981f22494b926cbbc3b9ec685e
parent6a13feb9c82803e2b815eca72fa7a9f5561d7861
ide: pdc202xx_new: Replace timeval with ktime_t

This driver uses 'struct timeval' which we are trying to remove since
32 bit time types will break in the year 2038 by replacing it with
ktime_t.

This patch changes do_gettimeofday() to ktime_get() because
ktime_get() returns a ktime_t while do_gettimeofday() returns struct
timeval.

This patch also uses ktime_us_delta() to get the elapsed time.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/pdc202xx_new.c