Skip to content

Commit

Permalink
hw/clock: Remove unused clock_init*() functions
Browse files Browse the repository at this point in the history
clock_init*() inlined funtions are simple wrappers around
clock_set*() and are not used. Remove them in favor of clock_set*().

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200806123858.30058-2-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
philmd authored and pm215 committed Aug 28, 2020
1 parent 870f005 commit bb80ae0
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions include/hw/clock.h
Expand Up @@ -209,17 +209,4 @@ static inline bool clock_is_enabled(const Clock *clk)
return clock_get(clk) != 0;
}

static inline void clock_init(Clock *clk, uint64_t value)
{
clock_set(clk, value);
}
static inline void clock_init_hz(Clock *clk, uint64_t value)
{
clock_set_hz(clk, value);
}
static inline void clock_init_ns(Clock *clk, uint64_t value)
{
clock_set_ns(clk, value);
}

#endif /* QEMU_HW_CLOCK_H */

0 comments on commit bb80ae0

Please sign in to comment.