common.c (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) | common.c (d1ff2559cef0f6f8d97fba6337b28adb10689e16) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * This file contains common code that is intended to be used across 4 * boards so that it's not replicated. 5 * 6 * Copyright (C) 2011 Xilinx 7 */ 8 --- 63 unchanged lines hidden (view full) --- 72 73 np = of_find_compatible_node(NULL, NULL, "xlnx,zynq-devcfg-1.0"); 74 if (!np) { 75 pr_err("%s: no devcfg node found\n", __func__); 76 return -1; 77 } 78 79 zynq_devcfg_base = of_iomap(np, 0); | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * This file contains common code that is intended to be used across 4 * boards so that it's not replicated. 5 * 6 * Copyright (C) 2011 Xilinx 7 */ 8 --- 63 unchanged lines hidden (view full) --- 72 73 np = of_find_compatible_node(NULL, NULL, "xlnx,zynq-devcfg-1.0"); 74 if (!np) { 75 pr_err("%s: no devcfg node found\n", __func__); 76 return -1; 77 } 78 79 zynq_devcfg_base = of_iomap(np, 0); |
80 of_node_put(np); |
|
80 if (!zynq_devcfg_base) { 81 pr_err("%s: Unable to map I/O memory\n", __func__); 82 return -1; 83 } 84 85 revision = readl(zynq_devcfg_base + ZYNQ_DEVCFG_MCTRL); 86 revision >>= ZYNQ_DEVCFG_PS_VERSION_SHIFT; 87 revision &= ZYNQ_DEVCFG_PS_VERSION_MASK; --- 112 unchanged lines hidden --- | 81 if (!zynq_devcfg_base) { 82 pr_err("%s: Unable to map I/O memory\n", __func__); 83 return -1; 84 } 85 86 revision = readl(zynq_devcfg_base + ZYNQ_DEVCFG_MCTRL); 87 revision >>= ZYNQ_DEVCFG_PS_VERSION_SHIFT; 88 revision &= ZYNQ_DEVCFG_PS_VERSION_MASK; --- 112 unchanged lines hidden --- |