clk: sunxi-ng: Move all clock types to a library
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 2 Jun 2017 22:30:06 +0000 (15:30 -0700)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 7 Jun 2017 13:33:39 +0000 (15:33 +0200)
commit06e226c7fb233f676b01b144d0b321ebe510fdcd
tree5aadbd5d2a75b62c4744838a3f35a9e32d8dd685
parent5a90c14c0b11342f1121c9aa3fd8b679595015c7
clk: sunxi-ng: Move all clock types to a library

We've run into kconfig missing dependency errors in the sunxi-ng
code a couple times now. Each time the fix is to find the missing
select statement and add it to the Kconfig entry for a particular
SoC driver. Given that all this code is builtin (non-modular) we
don't need to do this complicated dependency tracking in Kconfig.
Instead we can move all the "library"ish code to be compiled as
lib-y instead of obj-y, let the linker throw away unused code in
the resulting vmlinux, and drop all the Kconfig stuff we use to
track clock types.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
[Maxime: added lib.a to obj-y, added the comment]
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi-ng/Kconfig
drivers/clk/sunxi-ng/Makefile