clk: Move devm_ APIs out of clkdev into HAVE_CLK
Subsystems (2)
PATCH 1/1 clk: Move devm_ APIs out of clkdev into HAVE_CLK
Move the devm_ versions of the clock APIs out of clkdev into a separate file built when HAVE_CLK is enabled so that we don't need to update all the myriad clock API implementations.
Signed-off-by Mark Brown <[email protected]>
--- drivers/clk/Makefile | 2 +- drivers/clk/clk-devres.c | 61 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/clk/clkdev.c | 45 ---------------------------------- 3 files changed, 62 insertions(+), 46 deletions(-) create mode 100644 drivers/clk/clk-devres.c
drivers/clk/Makefile +1 -1
@@ -1,4 +1,4 @@ - +obj-$(CONFIG_HAVE_CLK) += clk-devres.o obj-$(CONFIG_CLKDEV_LOOKUP) += clkdev.o obj-$(CONFIG_COMMON_CLK) += clk.o clk-fixed-rate.o clk-gate.o \ clk-mux.o clk-divider.o clk-fixed-factor.o
drivers/clk/clk-devres.c new file +61 -0
61 lines not on this page · raw message
drivers/clk/clkdev.c +0 -45
51 lines not on this page · raw message
Signature · 1 line
1.7.10