summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2019-10-22 14:00:04 +0200
committerLukasz Majewski <lukma@denx.de>2019-10-22 16:14:05 +0200
commit52720c536ffdbe0e6aece79840e2791d87204cf7 (patch)
tree190272b13beda559e06c6ad8c274014b1a267854 /drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h
parent8a1661f20e6cdda682820eba9ccc79bff5a3d7f8 (diff)
drivers: clk: Add a managed API to get clocks from the device-tree
Add devm_clk_get(), devm_clk_get_optional() to get clocks from the device-tree. The clocks is automatically released and the data structure freed when the device is unbound. Also add devm_clk_put() to release the clock and free the data structure manually. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h')
-rw-r--r--drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h
index 02cab0f828..6f9bec7085 100644
--- a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h
+++ b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h
@@ -6,10 +6,6 @@
#include <clk.h>
#include <dm.h>
-struct clk *devm_clk_get(struct udevice *dev, const char *id);
-int clk_prepare_enable(struct clk *clk);
-void clk_disable_unprepare(struct clk *clk);
-
char *devm_kasprintf(struct udevice *dev, gfp_t gfp, const char *fmt, ...);
#endif /* __BRCMNAND_COMPAT_H */