aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire')
-rw-r--r--drivers/firewire/core-cdev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c
index f0587273940e..d8e185582642 100644
--- a/drivers/firewire/core-cdev.c
+++ b/drivers/firewire/core-cdev.c
@@ -1205,7 +1205,7 @@ static int ioctl_get_cycle_timer2(struct client *client, union ioctl_arg *arg)
1205{ 1205{
1206 struct fw_cdev_get_cycle_timer2 *a = &arg->get_cycle_timer2; 1206 struct fw_cdev_get_cycle_timer2 *a = &arg->get_cycle_timer2;
1207 struct fw_card *card = client->device->card; 1207 struct fw_card *card = client->device->card;
1208 struct timespec ts = {0, 0}; 1208 struct timespec64 ts = {0, 0};
1209 u32 cycle_time; 1209 u32 cycle_time;
1210 int ret = 0; 1210 int ret = 0;
1211 1211
@@ -1214,9 +1214,9 @@ static int ioctl_get_cycle_timer2(struct client *client, union ioctl_arg *arg)
1214 cycle_time = card->driver->read_csr(card, CSR_CYCLE_TIME); 1214 cycle_time = card->driver->read_csr(card, CSR_CYCLE_TIME);
1215 1215
1216 switch (a->clk_id) { 1216 switch (a->clk_id) {
1217 case CLOCK_REALTIME: getnstimeofday(&ts); break; 1217 case CLOCK_REALTIME: ktime_get_real_ts64(&ts); break;
1218 case CLOCK_MONOTONIC: ktime_get_ts(&ts); break; 1218 case CLOCK_MONOTONIC: ktime_get_ts64(&ts); break;
1219 case CLOCK_MONOTONIC_RAW: getrawmonotonic(&ts); break; 1219 case CLOCK_MONOTONIC_RAW: ktime_get_raw_ts64(&ts); break;
1220 default: 1220 default:
1221 ret = -EINVAL; 1221 ret = -EINVAL;
1222 } 1222 }