mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
clk: uclass: clk_get_by_name() must not be available if CONFIG_OF_PLATDATA is enabled
clk_get_by_name() requires clk_get_by_id() that is not available if CONFIG_OF_PLATDATA is defined, so move clk_get_by_name() into #else condition of #if CONFIG_IS_ENABLED(OF_PLATDATA). Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
This commit is contained in:
parent
5dcac2b9b3
commit
efbdad3838
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,6 @@ int clk_set_defaults(struct udevice *dev, int stage)
|
|||
|
||||
return 0;
|
||||
}
|
||||
# endif /* OF_PLATDATA */
|
||||
|
||||
int clk_get_by_name(struct udevice *dev, const char *name, struct clk *clk)
|
||||
{
|
||||
|
@ -343,6 +342,7 @@ int clk_get_by_name(struct udevice *dev, const char *name, struct clk *clk)
|
|||
|
||||
return clk_get_by_index(dev, index, clk);
|
||||
}
|
||||
# endif /* OF_PLATDATA */
|
||||
|
||||
int clk_get_by_name_nodev(ofnode node, const char *name, struct clk *clk)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue