Skip to contentSkip to conversation

clk: Move devm_ APIs out of clkdev into HAVE_CLK

PATCH New Mark Brown 1 participant 1 message Jun 5, 2012

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

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.

---
 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
index b679f11..40e6207 100644
@@ -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