summaryrefslogtreecommitdiff
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorLi zeming <zeming@nfschina.com>2022-07-27 11:37:51 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2022-07-27 18:01:52 +0300
commit148399c90e25bb5d1aa6f3e1dde25fec6f4005f2 (patch)
tree609625ab2650b8c742050cbf1b97324ed85f6976 /drivers/clocksource
parentc329fb5318ef82e8793432f845ad916c3199a5b6 (diff)
downloadlinux-148399c90e25bb5d1aa6f3e1dde25fec6f4005f2.tar.xz
clocksource/drivers/sun5i: Remove unnecessary (void*) conversions
Remove unnecessary void* type castings. Signed-off-by: Li zeming <zeming@nfschina.com> Link: https://lore.kernel.org/r/20220727083751.5540-1-zeming@nfschina.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/timer-sun5i.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-sun5i.c b/drivers/clocksource/timer-sun5i.c
index 85900f7fc69f..7d5fa9069906 100644
--- a/drivers/clocksource/timer-sun5i.c
+++ b/drivers/clocksource/timer-sun5i.c
@@ -142,7 +142,7 @@ static int sun5i_clkevt_next_event(unsigned long evt,
static irqreturn_t sun5i_timer_interrupt(int irq, void *dev_id)
{
- struct sun5i_timer_clkevt *ce = (struct sun5i_timer_clkevt *)dev_id;
+ struct sun5i_timer_clkevt *ce = dev_id;
writel(0x1, ce->timer.base + TIMER_IRQ_ST_REG);
ce->clkevt.event_handler(&ce->clkevt);