hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/video/fbdev/omap2/omapfb/dss/dss-of.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2013 Texas Instruments
34 * 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.
135 */
146
157 #include <linux/device.h>
....@@ -60,7 +52,7 @@
6052 return NULL;
6153 }
6254 prev = port;
63
- } while (of_node_cmp(port->name, "port") != 0);
55
+ } while (!of_node_name_eq(port, "port"));
6456
6557 of_node_put(ports);
6658 }
....@@ -83,7 +75,7 @@
8375 if (!ep)
8476 return NULL;
8577 prev = ep;
86
- } while (of_node_cmp(ep->name, "endpoint") != 0);
78
+ } while (!of_node_name_eq(ep, "endpoint"));
8779
8880 return ep;
8981 }