diff options
author | Holger Brunck <holger.brunck@keymile.com> | 2011-06-05 22:22:19 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-27 21:44:30 (GMT) |
commit | fc9a7441d9a1d450994524e51657a37e880ec198 (patch) | |
tree | 367d8f6ec70664fa17eed1b0cc9e4bb3dbb02e05 /board | |
parent | 4f745bf4c8d8fa44ce640e551be974808a529889 (diff) | |
download | u-boot-fsl-qoriq-fc9a7441d9a1d450994524e51657a37e880ec198.tar.xz |
km/common: remove fdt_(gs)et_node_and_value
This code is unused and therefore dead code.
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/keymile/common/common.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c index 010e969..814968d 100644 --- a/board/keymile/common/common.c +++ b/board/keymile/common/common.c @@ -299,61 +299,6 @@ void i2c_init_board(void) #endif #endif -#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) -int fdt_set_node_and_value(void *blob, - char *nodename, - char *regname, - void *var, - int size) -{ - int ret = 0; - int nodeoffset = 0; - - nodeoffset = fdt_path_offset(blob, nodename); - if (nodeoffset >= 0) { - ret = fdt_setprop(blob, nodeoffset, regname, var, - size); - if (ret < 0) - printf("ft_blob_update(): cannot set %s/%s " - "property err:%s\n", nodename, regname, - fdt_strerror(ret)); - } else { - printf("ft_blob_update(): cannot find %s node " - "err:%s\n", nodename, fdt_strerror(nodeoffset)); - } - return ret; -} - -int fdt_get_node_and_value(void *blob, - char *nodename, - char *propname, - void **var) -{ - int len; - int nodeoffset = 0; - - nodeoffset = fdt_path_offset(blob, nodename); - if (nodeoffset >= 0) { - *var = (void *)fdt_getprop(blob, nodeoffset, propname, &len); - if (len == 0) { - /* no value */ - printf("%s no value\n", __func__); - return -1; - } else if (len > 0) { - return len; - } else { - printf("libfdt fdt_getprop(): %s\n", - fdt_strerror(len)); - return -2; - } - } else { - printf("%s: cannot find %s node err:%s\n", __func__, - nodename, fdt_strerror(nodeoffset)); - return -3; - } -} -#endif - #if !defined(MACH_TYPE_KM_KIRKWOOD) int ethernet_present(void) { |