diff options
author | Tom Rini <trini@konsulko.com> | 2019-10-30 13:13:46 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-10-30 13:13:46 -0400 |
commit | 412326d1bc2d346d7b4faad6fa547eaf065681a2 (patch) | |
tree | f321db73de4b43f8bf56d6998d3053a8b48b1e1c /drivers/mtd | |
parent | 1a81cf8ab735dfb0947dce497cf1503f59066c22 (diff) | |
parent | 9a52be129c5b159269ac69a7ae0197eb02612f1d (diff) | |
download | u-boot-412326d1bc2d346d7b4faad6fa547eaf065681a2.zip u-boot-412326d1bc2d346d7b4faad6fa547eaf065681a2.tar.gz u-boot-412326d1bc2d346d7b4faad6fa547eaf065681a2.tar.bz2 |
Merge tag 'u-boot-clk-23Oct2019' of https://gitlab.denx.de/u-boot/custodians/u-boot-clk
- Add I2C clocks for i.MX6Q CCF driver
- Fix check in clk_set_default_parents()
- Managed API to get clock from device tree
- Fixes for core clock code (including sandbox regression tests)
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c | 30 | ||||
-rw-r--r-- | drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h | 4 |
2 files changed, 0 insertions, 34 deletions
diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c index 96b27e6..8839483 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c @@ -3,36 +3,6 @@ #include <common.h> #include "brcmnand_compat.h" -struct clk *devm_clk_get(struct udevice *dev, const char *id) -{ - struct clk *clk; - int ret; - - clk = devm_kzalloc(dev, sizeof(*clk), GFP_KERNEL); - if (!clk) { - debug("%s: can't allocate clock\n", __func__); - return ERR_PTR(-ENOMEM); - } - - ret = clk_get_by_name(dev, id, clk); - if (ret < 0) { - debug("%s: can't get clock (ret = %d)!\n", __func__, ret); - return ERR_PTR(ret); - } - - return clk; -} - -int clk_prepare_enable(struct clk *clk) -{ - return clk_enable(clk); -} - -void clk_disable_unprepare(struct clk *clk) -{ - clk_disable(clk); -} - static char *devm_kvasprintf(struct udevice *dev, gfp_t gfp, const char *fmt, va_list ap) { diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h index 02cab0f..6f9bec7 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 */ |