|
@@ -281,20 +281,16 @@ int ft_board_setup(void *blob, struct bd_info *bd)
|
|
|
}
|
|
|
|
|
|
if (blob) {
|
|
|
+ /* delete cavium,bdk node if it exists */
|
|
|
offset = fdt_path_offset(blob, "/cavium,bdk");
|
|
|
- if (offset < 0) {
|
|
|
- printf("ERROR: FDT BDK node not found\n");
|
|
|
- return offset;
|
|
|
- }
|
|
|
-
|
|
|
- /* delete node */
|
|
|
- ret = fdt_del_node(blob, offset);
|
|
|
- if (ret < 0) {
|
|
|
- printf("WARNING : could not remove bdk node\n");
|
|
|
- return ret;
|
|
|
+ if (offset >= 0) {
|
|
|
+ ret = fdt_del_node(blob, offset);
|
|
|
+ if (ret < 0) {
|
|
|
+ printf("WARNING : could not remove bdk node\n");
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ debug("%s deleted bdk node\n", __func__);
|
|
|
}
|
|
|
-
|
|
|
- debug("%s deleted bdk node\n", __func__);
|
|
|
}
|
|
|
|
|
|
return 0;
|