clk.h: inline clk_get_by_name()
authorAndreas Bießmann <andreas@biessmann.org>
Mon, 15 Aug 2016 19:04:41 +0000 (21:04 +0200)
committerAndreas Bießmann <andreas@biessmann.org>
Mon, 15 Aug 2016 20:58:03 +0000 (22:58 +0200)
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>
include/clk.h

index 161bc2825fc0f77f3281035271cb736651bf4990..dc18b0310a4eea139095449901f3c8fe3faac05d 100644 (file)
@@ -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;