summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/zii-common/pn-fixup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/boards/zii-common/pn-fixup.c')
-rw-r--r--arch/arm/boards/zii-common/pn-fixup.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/arch/arm/boards/zii-common/pn-fixup.c b/arch/arm/boards/zii-common/pn-fixup.c
index a665199917..3c69f1a022 100644
--- a/arch/arm/boards/zii-common/pn-fixup.c
+++ b/arch/arm/boards/zii-common/pn-fixup.c
@@ -1,16 +1,5 @@
-/*
- * Copyright (C) 2019 Zodiac Inflight Innovation
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
+// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-FileCopyrightText: 2019 Zodiac Inflight Innovation
#include <common.h>
#include <init.h>
@@ -22,7 +11,7 @@ char *zii_read_part_number(const char *cell_name, size_t cell_size)
{
struct device_node *np;
- np = of_find_node_by_name(NULL, "device-info");
+ np = of_find_node_by_name_address(NULL, "device-info");
if (!np) {
pr_warn("No device information found\n");
return ERR_PTR(-ENOENT);