Commit d51e9a1d authored by Andreas Bießmann's avatar Andreas Bießmann

clk.h: inline clk_get_by_name()

Fix compile warning for non OF_CONTROL builds:

In file included from /Volumes/devel/u-boot/drivers/gpio/atmel_pio4.c:10:0:
/Volumes/devel/u-boot/include/clk.h:107:12: warning: 'clk_get_by_name' defined but not used [-Wunused-function]
Signed-off-by: default avatarAndreas Bießmann <>
Acked-by: default avatarStephen Warren <>
parent 9e5935c0
......@@ -104,7 +104,7 @@ static inline int clk_get_by_index(struct udevice *dev, int index,
return -ENOSYS;
static int clk_get_by_name(struct udevice *dev, const char *name,
static inline int clk_get_by_name(struct udevice *dev, const char *name,
struct clk *clk)
return -ENOSYS;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment