Commit d51e9a1d04ab77ee26da534172c0c3891dc8ac4f

Authored by Andreas Bießmann
1 parent 9e5935c04e

clk.h: inline clk_get_by_name()

Fix compile warning for non OF_CONTROL builds:

---8<---
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]
--->8---

Signed-off-by: Andreas Bießmann <andreas@biessmann.org>
Acked-by: Stephen Warren <swarren@nvidia.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -104,7 +104,7 @@
104 104 return -ENOSYS;
105 105 }
106 106  
107   -static int clk_get_by_name(struct udevice *dev, const char *name,
  107 +static inline int clk_get_by_name(struct udevice *dev, const char *name,
108 108 struct clk *clk)
109 109 {
110 110 return -ENOSYS;