clk.h: inline clk_get_by_name()
PATCH 1/1 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---
---
include/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/clk.h +1 -1
@@ -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 ;
Signature · 1 line
2.7.4 (Apple Git-66)
PATCH 1/1 clk.h: inline clk_get_by_name()
Quoted 6 lines · Andreas Bie?mann
Fix compile warning for non
OF_CONTROLbuilds:---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---
Dear =?utf-8?q?Andreas_Bie=C3=9Fmann?=,
Quoted 7 lines · <[email protected]> writes:
Fix compile warning for non
OF_CONTROLbuilds:---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---
Quoted 6 lines
Signed-off-by Andreas Bie?mann <[email protected]>Acked-by Stephen Warren <[email protected]>---
include/clk.h| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
applied to u-boot-atmel/master, thanks!
Best regards,
Andreas Bie?mann
PATCH 1/1 clk.h: inline clk_get_by_name()
In reply to Andreas BießmannQuoted 8 lines · Andreas Bie?mann
Fix compile warning for non
OF_CONTROLbuilds:---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---
Quoted 5 lines
Signed-off-by Andreas Bie?mann <[email protected]>---
include/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)