forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/arch/powerpc/platforms/44x/warp.c
....@@ -1,13 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * PIKA Warp(tm) board specific routines
34 *
45 * Copyright (c) 2008-2009 PIKA Technologies
56 * Sean MacLennan <smaclennan@pikatech.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License as published by the
9
- * Free Software Foundation; either version 2 of the License, or (at your
10
- * option) any later version.
117 */
128 #include <linux/init.h>
139 #include <linux/of_platform.h>
....@@ -46,9 +42,6 @@
4642 {
4743 if (!of_machine_is_compatible("pika,warp"))
4844 return 0;
49
-
50
- /* For __dma_alloc_coherent */
51
- ISA_DMA_THRESHOLD = ~0L;
5245
5346 return 1;
5447 }
....@@ -179,9 +172,9 @@
179172 }
180173
181174 for_each_child_of_node(np, child)
182
- if (strcmp(child->name, "green") == 0)
175
+ if (of_node_name_eq(child, "green"))
183176 green_led = of_get_gpio(child, 0);
184
- else if (strcmp(child->name, "red") == 0)
177
+ else if (of_node_name_eq(child, "red"))
185178 red_led = of_get_gpio(child, 0);
186179
187180 of_node_put(np);