| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2013 Texas Instruments |
|---|
| 3 | 4 | * Author: Tomi Valkeinen <tomi.valkeinen@ti.com> |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 6 | | - * under the terms of the GNU General Public License version 2 as published by |
|---|
| 7 | | - * the Free Software Foundation. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 12 | | - * more details. |
|---|
| 13 | 5 | */ |
|---|
| 14 | 6 | |
|---|
| 15 | 7 | #include <linux/device.h> |
|---|
| .. | .. |
|---|
| 60 | 52 | return NULL; |
|---|
| 61 | 53 | } |
|---|
| 62 | 54 | prev = port; |
|---|
| 63 | | - } while (of_node_cmp(port->name, "port") != 0); |
|---|
| 55 | + } while (!of_node_name_eq(port, "port")); |
|---|
| 64 | 56 | |
|---|
| 65 | 57 | of_node_put(ports); |
|---|
| 66 | 58 | } |
|---|
| .. | .. |
|---|
| 83 | 75 | if (!ep) |
|---|
| 84 | 76 | return NULL; |
|---|
| 85 | 77 | prev = ep; |
|---|
| 86 | | - } while (of_node_cmp(ep->name, "endpoint") != 0); |
|---|
| 78 | + } while (!of_node_name_eq(ep, "endpoint")); |
|---|
| 87 | 79 | |
|---|
| 88 | 80 | return ep; |
|---|
| 89 | 81 | } |
|---|