Fix gcc build warning:

drivers/clocksource/timer-ixp4xx.c:78:20:
 warning: 'ixp4xx_read_sched_clock' defined but not used [-Wunused-function]

Reported-by: Hulk Robot <hul...@huawei.com>
Signed-off-by: YueHaibing <yuehaib...@huawei.com>
---
 drivers/clocksource/timer-ixp4xx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/clocksource/timer-ixp4xx.c 
b/drivers/clocksource/timer-ixp4xx.c
index 404445b..96a72e5 100644
--- a/drivers/clocksource/timer-ixp4xx.c
+++ b/drivers/clocksource/timer-ixp4xx.c
@@ -75,10 +75,12 @@ to_ixp4xx_timer(struct clock_event_device *evt)
        return container_of(evt, struct ixp4xx_timer, clkevt);
 }
 
+#ifdef CONFIG_ARM
 static u64 notrace ixp4xx_read_sched_clock(void)
 {
        return __raw_readl(local_ixp4xx_timer->base + IXP4XX_OSTS_OFFSET);
 }
+#endif
 
 static u64 ixp4xx_clocksource_read(struct clocksource *c)
 {
-- 
2.7.4


Reply via email to