summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-03-24 10:01:32 +0100
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:47:24 +0900
commit1a3326f3fd4f5642433b3e3620396ac3a8866aed (patch)
treec9309a0de56b45dd8c01fb1dff0483e81ce9bf5c /drivers
parentf90c03adc8223b425da45ae3404e059b6712132e (diff)
downloadlinux-3.10-1a3326f3fd4f5642433b3e3620396ac3a8866aed.tar.gz
linux-3.10-1a3326f3fd4f5642433b3e3620396ac3a8866aed.tar.bz2
linux-3.10-1a3326f3fd4f5642433b3e3620396ac3a8866aed.zip
clocksource: exynos_mct: Change exynos4_mct_tick_clear return type to void
Return value of exynos4_mct_tick_clear() was never checked so it can be safely changed to void. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Change-Id: I14f872e244434002005c532adf8afc97ef77cea5
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clocksource/exynos_mct.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c
index 40edf86500c..a74e49a2e79 100644
--- a/drivers/clocksource/exynos_mct.c
+++ b/drivers/clocksource/exynos_mct.c
@@ -382,15 +382,11 @@ static inline void exynos4_tick_set_mode(enum clock_event_mode mode,
}
}
-static int exynos4_mct_tick_clear(struct mct_clock_event_device *mevt)
+static void exynos4_mct_tick_clear(struct mct_clock_event_device *mevt)
{
/* Clear the MCT tick interrupt */
- if (__raw_readl(reg_base + mevt->base + MCT_L_INT_CSTAT_OFFSET) & 1) {
+ if (__raw_readl(reg_base + mevt->base + MCT_L_INT_CSTAT_OFFSET) & 1)
exynos4_mct_write(0x1, mevt->base + MCT_L_INT_CSTAT_OFFSET);
- return 1;
- }
-
- return 0;
}
static irqreturn_t exynos4_mct_tick_isr(int irq, void *dev_id)