mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
clk: clean up legacy clock interfaces
A recent discussion about legacy clk interface users revealed that there are only two platforms remaining that provide their own clk_get()/clk_put() implementations, MIPS ar7 and and m68k coldfire. I managed to rework both of these to just use the normal clkdev code, and fold CONFIG_CLKDEV_LOOKUP into CONFIG_HAVE_CLK as it is now shared among all users. As I noticed that the ar7 clock implementation and the ralink version are rather trivial, I ended up converting those to use the common-clk interfaces as well, though this is unrelated to the other changes. Link: https://lore.kernel.org/linux-clk/20210531184749.2475868-1-arnd@kernel.org/ Link: https://lore.kernel.org/lkml/CAK8P3a2XsrfUJQQAfnGknh8HiA-D9L_wmEoAgXU89KqagE31NQ@mail.gmail.com/ Signed-off-by: Arnd Bergmann <arnd@arndb.de> -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEo6/YBQwIrVS28WGKmmx57+YAGNkFAmC/hgEACgkQmmx57+YA GNmfyA//ZqNX7E4/ZFbde2XEjhAkvQ3gGnhbpFLyAXotIQFeyM4cTY+ibtOoaizA 10SfQm4T9FBv+XZ5IU84lj1tYtuWboE1CO0QBhcTLpNPtMQ9ue7wc1xFakKX+Dmd CVH7O/nPveOwnLN4lTe2/or+QMpemP+l/zVqrVAh6AA6t3gXQ+GMHi/vo/KOD4RF ebdZHtmSjODemVB1AAATv63xw7GShlfowxEI+Y7oChWLNJuzSZzc1I3Z6Zod1A/d zGCQrtT01kTca92ZaJ39letii0NGhIVNkhaaHHW44fooqkKPwKUdRzJmXkGsmk33 OwZXvySJCL/uy4Ep23uRC3Ade8FAIJ8APSqF1Geo+iOGTBaOM+1RhAG8MCy+JckN NP5oGTy02Ay2Vt6fzx7Zua/6l+QX2EZ+yjThj9eVA3egmkjg/PjOgmP2vQ4yaybi /FUP4Lm8IJTaX1bgwqgX9VVI24quqJAeSHvPLY+mMZFpnPQt9kYYA9osNfTRI2TZ 9H3neAveZ1vjb/T2aVt8lEeGxk32g1QQOx1wnY6mUAGZcsgUpQn7B0skUomaYIzl iSYcHOSkqb2W1cZM63eW9oJhf3wPmaluRz2agu5JsQ+Nt/5rCGJ2XiikUIVdqYqt D3xpNmXugmMUVPCXqqroOCoaEPintadFWrTLnKlk8FAHtLp6nko= =vP9E -----END PGP SIGNATURE----- Merge tag 'clkdev-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic into clk-legacy Pull "clean up legacy clock interfaces" series from Arnd Bergmann: A recent discussion about legacy clk interface users revealed that there are only two platforms remaining that provide their own clk_get()/clk_put() implementations, MIPS ar7 and and m68k coldfire. I managed to rework both of these to just use the normal clkdev code, and fold CONFIG_CLKDEV_LOOKUP into CONFIG_HAVE_CLK as it is now shared among all users. As I noticed that the ar7 clock implementation and the ralink version are rather trivial, I ended up converting those to use the common-clk interfaces as well, though this is unrelated to the other changes. Link: https://lore.kernel.org/linux-clk/20210531184749.2475868-1-arnd@kernel.org/ Link: https://lore.kernel.org/lkml/CAK8P3a2XsrfUJQQAfnGknh8HiA-D9L_wmEoAgXU89KqagE31NQ@mail.gmail.com/ Signed-off-by: Arnd Bergmann <arnd@arndb.de> * tag 'clkdev-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic: clkdev: remove unused clkdev_alloc() interfaces clkdev: remove CONFIG_CLKDEV_LOOKUP m68k: coldfire: remove private clk_get/clk_put m68k: coldfire: use clkdev_lookup on most coldfire mips: ralink: convert to CONFIG_COMMON_CLK mips: ar7: convert to CONFIG_COMMON_CLK mips: ar7: convert to clkdev_lookup
This commit is contained in:
commit
4c5519facf
32 changed files with 318 additions and 568 deletions
Loading…
Add table
Add a link
Reference in a new issue