resolver.c (bba73071b6f71be0a101658d7c13866e30b264a6) | resolver.c (39a751a4cb7e4798f0ce1169ec92de4a1aae39e3) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Functions for dealing with DT resolution 4 * 5 * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com> 6 * Copyright (C) 2012 Texas Instruments Inc. 7 */ 8 --- 255 unchanged lines hidden (view full) --- 264 tree_symbols = NULL; 265 266 if (!overlay) { 267 pr_err("null overlay\n"); 268 err = -EINVAL; 269 goto out; 270 } 271 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Functions for dealing with DT resolution 4 * 5 * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com> 6 * Copyright (C) 2012 Texas Instruments Inc. 7 */ 8 --- 255 unchanged lines hidden (view full) --- 264 tree_symbols = NULL; 265 266 if (!overlay) { 267 pr_err("null overlay\n"); 268 err = -EINVAL; 269 goto out; 270 } 271 |
272#if 0 273 Temporarily disable check so that old style overlay unittests 274 do not fail when of_resolve_phandles() is moved into 275 of_overlay_apply(). 276 | |
277 if (!of_node_check_flag(overlay, OF_DETACHED)) { 278 pr_err("overlay not detached\n"); 279 err = -EINVAL; 280 goto out; 281 } | 272 if (!of_node_check_flag(overlay, OF_DETACHED)) { 273 pr_err("overlay not detached\n"); 274 err = -EINVAL; 275 goto out; 276 } |
282#endif | |
283 284 phandle_delta = live_tree_max_phandle() + 1; 285 adjust_overlay_phandles(overlay, phandle_delta); 286 287 for_each_child_of_node(overlay, local_fixups) 288 if (!of_node_cmp(local_fixups->name, "__local_fixups__")) 289 break; 290 --- 56 unchanged lines hidden --- | 277 278 phandle_delta = live_tree_max_phandle() + 1; 279 adjust_overlay_phandles(overlay, phandle_delta); 280 281 for_each_child_of_node(overlay, local_fixups) 282 if (!of_node_cmp(local_fixups->name, "__local_fixups__")) 283 break; 284 --- 56 unchanged lines hidden --- |