#include <linux/clk.h>
#include <linux/device.h>
#include <linux/export.h>
#include <linux/gfp.h>
struct devm_clk_state { … };
static void devm_clk_release(struct device *dev, void *res)
{ … }
static struct clk *__devm_clk_get(struct device *dev, const char *id,
struct clk *(*get)(struct device *dev, const char *id),
int (*init)(struct clk *clk),
void (*exit)(struct clk *clk))
{ … }
struct clk *devm_clk_get(struct device *dev, const char *id)
{ … }
EXPORT_SYMBOL(…);
struct clk *devm_clk_get_prepared(struct device *dev, const char *id)
{ … }
EXPORT_SYMBOL_GPL(…);
struct clk *devm_clk_get_enabled(struct device *dev, const char *id)
{ … }
EXPORT_SYMBOL_GPL(…);
struct clk *devm_clk_get_optional(struct device *dev, const char *id)
{ … }
EXPORT_SYMBOL(…);
struct clk *devm_clk_get_optional_prepared(struct device *dev, const char *id)
{ … }
EXPORT_SYMBOL_GPL(…);
struct clk *devm_clk_get_optional_enabled(struct device *dev, const char *id)
{ … }
EXPORT_SYMBOL_GPL(…);
struct clk_bulk_devres { … };
static void devm_clk_bulk_release(struct device *dev, void *res)
{ … }
static int __devm_clk_bulk_get(struct device *dev, int num_clks,
struct clk_bulk_data *clks, bool optional)
{ … }
int __must_check devm_clk_bulk_get(struct device *dev, int num_clks,
struct clk_bulk_data *clks)
{ … }
EXPORT_SYMBOL_GPL(…);
int __must_check devm_clk_bulk_get_optional(struct device *dev, int num_clks,
struct clk_bulk_data *clks)
{ … }
EXPORT_SYMBOL_GPL(…);
static void devm_clk_bulk_release_all(struct device *dev, void *res)
{ … }
int __must_check devm_clk_bulk_get_all(struct device *dev,
struct clk_bulk_data **clks)
{ … }
EXPORT_SYMBOL_GPL(…);
static void devm_clk_bulk_release_all_enable(struct device *dev, void *res)
{ … }
int __must_check devm_clk_bulk_get_all_enable(struct device *dev,
struct clk_bulk_data **clks)
{ … }
EXPORT_SYMBOL_GPL(…);
static int devm_clk_match(struct device *dev, void *res, void *data)
{ … }
void devm_clk_put(struct device *dev, struct clk *clk)
{ … }
EXPORT_SYMBOL(…);
struct clk *devm_get_clk_from_child(struct device *dev,
struct device_node *np, const char *con_id)
{ … }
EXPORT_SYMBOL(…);