• Janusz Krzysztofik's avatar
    ARM: OMAP1: clock: Remove unused code · 6bdfc9be
    Janusz Krzysztofik authored
    The code of OMAP1 clocks contains quite a few unused elements:
    - functions and function like macros never called: clk_reparent(),
      recalculate_root_clocks(), clk_enable_init_clocks(),
      omap_clk_get_by_name(), omap_clk_disable_autoidle_all(),
      __clk_get_parent(clk), __clk_get_rate(),
    - unused structure fields:
      - clkops: .find_idlest(), .find_companion(), .deny_idle(),
      - clk: .src_offset, as well as .clkdm -- no longer present but still
        mentioned in comments,
    - definitions of unused flags: INVERT_ENABLE, CLOCK_CLKOUTX2,
    - definitions of unused data types: struct clk_functions,
    - prototypes of functions with no implementation: clk_init(),
      omap1_watchdog_recalc().
    - declarations of never defined global variables: clkops_dummy.
    Drop them.
    Signed-off-by: default avatarJanusz Krzysztofik <jmkrzyszt@gmail.com>
    Acked-by: default avatarTony Lindgren <tony@atomide.com>
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    6bdfc9be
clock.h 7.86 KB