aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2015-01-20 11:34:38 -0500
committerMatt Fleming <matt.fleming@intel.com>2015-01-20 17:41:56 -0500
commit11629305043c513454c4ccb4fc384a1bfe610647 (patch)
tree7fb7e453569f1f51dadc34cf910b9bbfb05872e1
parent613782b0875269b6f849e3344a789e647414a434 (diff)
efi: Don't look for chosen@0 node on DT platforms
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 <leif.lindholm@linaro.org> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--drivers/firmware/efi/efi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index f8f126812656..23f1eca92dc4 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -403,8 +403,7 @@ static int __init fdt_find_uefi_params(unsigned long node, const char *uname,
403 u64 val; 403 u64 val;
404 int i, len; 404 int i, len;
405 405
406 if (depth != 1 || 406 if (depth != 1 || strcmp(uname, "chosen") != 0)
407 (strcmp(uname, "chosen") != 0 && strcmp(uname, "chosen@0") != 0))
408 return 0; 407 return 0;
409 408
410 for (i = 0; i < ARRAY_SIZE(dt_params); i++) { 409 for (i = 0; i < ARRAY_SIZE(dt_params); i++) {