diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2016-06-16 15:49:23 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-06-28 10:16:43 +0200 |
commit | 48419b1bf04d185bd4e8950f938d89be552876d0 (patch) | |
tree | 6d159d1d0e34afeee874af2aca521c08df2ff805 /drivers | |
parent | 2c436e46fabd9f34d0127f7ff3e3678ef826b55e (diff) | |
download | linux-48419b1bf04d185bd4e8950f938d89be552876d0.tar.bz2 |
clocksource/drivers/digicolor: Fix warning of non-static function
Change the dc_timer function to be static as it is not used outside
this driver. This fixes the following warning:
drivers/clocksource/timer-digicolor.c:66:24: warning: symbol 'dc_timer' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/clocksource/timer-digicolor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-digicolor.c b/drivers/clocksource/timer-digicolor.c index a536eeb634d8..96bb2225b84b 100644 --- a/drivers/clocksource/timer-digicolor.c +++ b/drivers/clocksource/timer-digicolor.c @@ -63,7 +63,7 @@ struct digicolor_timer { int timer_id; /* one of TIMER_* */ }; -struct digicolor_timer *dc_timer(struct clock_event_device *ce) +static struct digicolor_timer *dc_timer(struct clock_event_device *ce) { return container_of(ce, struct digicolor_timer, ce); } |