Skip to content

Commit

Permalink
clocksource/drivers/pistachio: Fix trivial typo
Browse files Browse the repository at this point in the history
Fix trivial typo, rename local variable from 'overflw' to 'overflow' in
pistachio_clocksource_read_cycles().

Reported-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Drew Fustini <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
pdp7 authored and dlezcano committed Apr 8, 2021
1 parent 2a65f7e commit a47d7ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/clocksource/timer-pistachio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand All @@ -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);

Expand Down

0 comments on commit a47d7ef

Please sign in to comment.