Skip to content

Commit

Permalink
efi: Don't look for chosen@0 node on DT platforms
Browse files Browse the repository at this point in the history
Due to some scary special case handling noticed in drivers/of, various
bits of the ARM* EFI support patches did duplicate looking for @0
variants of various nodes. Unless on an ancient PPC system, these are
not in fact required. Most instances have become refactored out along
the way, this removes the last one.

Signed-off-by: Leif Lindholm <[email protected]>
Signed-off-by: Matt Fleming <[email protected]>
  • Loading branch information
Leif Lindholm authored and Matt Fleming committed Jan 20, 2015
1 parent 613782b commit 1162930
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/firmware/efi/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,7 @@ static int __init fdt_find_uefi_params(unsigned long node, const char *uname,
u64 val;
int i, len;

if (depth != 1 ||
(strcmp(uname, "chosen") != 0 && strcmp(uname, "chosen@0") != 0))
if (depth != 1 || strcmp(uname, "chosen") != 0)
return 0;

for (i = 0; i < ARRAY_SIZE(dt_params); i++) {
Expand Down

0 comments on commit 1162930

Please sign in to comment.