summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorDrew Fustini <drew@beagleboard.org>2021-03-05 01:03:17 -0800
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-04-08 13:24:15 +0200
commita47d7ef4550d08fb428ea4c3f1a9c71674212208 (patch)
treecb1dca0efcb214380cddd8832788dcdb16b84644 /drivers/clocksource
parent2a65f7e2772613debd03fa2492e76a635aa04545 (diff)
downloadlinux-a47d7ef4550d08fb428ea4c3f1a9c71674212208.tar.gz
linux-a47d7ef4550d08fb428ea4c3f1a9c71674212208.tar.bz2
linux-a47d7ef4550d08fb428ea4c3f1a9c71674212208.zip
clocksource/drivers/pistachio: Fix trivial typo
Fix trivial typo, rename local variable from 'overflw' to 'overflow' in pistachio_clocksource_read_cycles(). Reported-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Drew Fustini <drew@beagleboard.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20210305090315.384547-1-drew@beagleboard.org
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/timer-pistachio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clocksource/timer-pistachio.c b/drivers/clocksource/timer-pistachio.c
index a2dd85d0c1d7..6f37181a8c63 100644
--- a/drivers/clocksource/timer-pistachio.c
+++ b/drivers/clocksource/timer-pistachio.c
@@ -71,7 +71,7 @@ static u64 notrace
pistachio_clocksource_read_cycles(struct clocksource *cs)
{
struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs);
- u32 counter, overflw;
+ u32 counter, overflow;
unsigned long flags;
/*
@@ -80,7 +80,7 @@ pistachio_clocksource_read_cycles(struct clocksource *cs)
*/
raw_spin_lock_irqsave(&pcs->lock, flags);
- overflw = gpt_readl(pcs->base, TIMER_CURRENT_OVERFLOW_VALUE, 0);
+ overflow = gpt_readl(pcs->base, TIMER_CURRENT_OVERFLOW_VALUE, 0);
counter = gpt_readl(pcs->base, TIMER_CURRENT_VALUE, 0);
raw_spin_unlock_irqrestore(&pcs->lock, flags);