aboutsummaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-aspeed.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm/pwm-aspeed.c')
-rw-r--r--drivers/pwm/pwm-aspeed.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-aspeed.c b/drivers/pwm/pwm-aspeed.c
index ba98641c86..b03472d234 100644
--- a/drivers/pwm/pwm-aspeed.c
+++ b/drivers/pwm/pwm-aspeed.c
@@ -49,6 +49,7 @@
#include <dm/device_compat.h>
#include <linux/math64.h>
#include <linux/bitfield.h>
+#include <linux/time.h>
#include <asm/io.h>
/* The channel number of Aspeed pwm controller */
@@ -77,8 +78,6 @@
/* PWM fixed value */
#define PWM_ASPEED_FIXED_PERIOD 0xff
-#define NSEC_PER_SEC 1000000000L
-
struct aspeed_pwm_priv {
struct clk clk;
struct regmap *regmap;