summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-04-13 09:52:04 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-04-15 12:31:24 +0200
commit765f4cadeb88199941a87f63376fc4b10a10fd07 (patch)
tree97a807081e37774f59f5ba60919eebced8f1b968 /drivers/clk
parent18afc26f9caae008bbebf65db981eb992bbb7cc3 (diff)
downloadbarebox-765f4cadeb88199941a87f63376fc4b10a10fd07.tar.gz
barebox-765f4cadeb88199941a87f63376fc4b10a10fd07.tar.xz
clk: at91: sckc: fix off-by-1000 in udelay()
SECOND is the number of nanoseconds in a second, but we need the number of microseconds for use in udelay. Use USEC_PER_SEC. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/at91/sckc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/at91/sckc.c b/drivers/clk/at91/sckc.c
index 3dc7843fcc..1a33a64421 100644
--- a/drivers/clk/at91/sckc.c
+++ b/drivers/clk/at91/sckc.c
@@ -20,7 +20,7 @@
#define SLOW_CLOCK_FREQ 32768
#define SLOWCK_SW_CYCLES 5
-#define SLOWCK_SW_TIME_USEC ((SLOWCK_SW_CYCLES * SECOND) / \
+#define SLOWCK_SW_TIME_USEC ((SLOWCK_SW_CYCLES * USEC_PER_SEC) / \
SLOW_CLOCK_FREQ)
#define AT91_SCKC_CR 0x00