summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/timer-tegra.c
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2019-06-18 16:03:54 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2019-06-25 19:49:18 +0200
commit7c708fda79ebdce0e207562b45a8f085b9f2114f (patch)
tree2f4dc87979a78141451dd95337c5f840ae040df7 /drivers/clocksource/timer-tegra.c
parentclocksource/drivers/tegra: Set and use timer's period (diff)
downloadlinux-7c708fda79ebdce0e207562b45a8f085b9f2114f.tar.xz
linux-7c708fda79ebdce0e207562b45a8f085b9f2114f.zip
clocksource/drivers/tegra: Drop unneeded typecasting in one place
There is no need to cast void because kernel allows to do that without a warning message from a compiler. Acked-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/clocksource/timer-tegra.c')
-rw-r--r--drivers/clocksource/timer-tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-tegra.c b/drivers/clocksource/timer-tegra.c
index 41257f89a216..f7a09d88dacb 100644
--- a/drivers/clocksource/timer-tegra.c
+++ b/drivers/clocksource/timer-tegra.c
@@ -83,7 +83,7 @@ static int tegra_timer_set_periodic(struct clock_event_device *evt)
static irqreturn_t tegra_timer_isr(int irq, void *dev_id)
{
- struct clock_event_device *evt = (struct clock_event_device *)dev_id;
+ struct clock_event_device *evt = dev_id;
void __iomem *reg_base = timer_of_base(to_timer_of(evt));
writel_relaxed(TIMER_PCR_INTR_CLR, reg_base + TIMER_PCR);