diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index c7d0607..6994f29 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -50,7 +50,7 @@ #include #include #include -#include +#include #if defined(HAVE_UNLOCKED_IOCTL) && defined(CONFIG_BKL) #include @@ -7405,7 +7405,7 @@ static int _dahdi_register_device(struct dahdi_device *ddev, __dahdi_init_span(s); } - getnstimeofday(&ddev->registration_time); + ktime_get_ts(&ddev->registration_time); ret = dahdi_sysfs_add_device(ddev, parent); if (ret) return ret;