.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * PIKA Warp(tm) board specific routines |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2008-2009 PIKA Technologies |
---|
5 | 6 | * 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. |
---|
11 | 7 | */ |
---|
12 | 8 | #include <linux/init.h> |
---|
13 | 9 | #include <linux/of_platform.h> |
---|
.. | .. |
---|
46 | 42 | { |
---|
47 | 43 | if (!of_machine_is_compatible("pika,warp")) |
---|
48 | 44 | return 0; |
---|
49 | | - |
---|
50 | | - /* For __dma_alloc_coherent */ |
---|
51 | | - ISA_DMA_THRESHOLD = ~0L; |
---|
52 | 45 | |
---|
53 | 46 | return 1; |
---|
54 | 47 | } |
---|
.. | .. |
---|
179 | 172 | } |
---|
180 | 173 | |
---|
181 | 174 | for_each_child_of_node(np, child) |
---|
182 | | - if (strcmp(child->name, "green") == 0) |
---|
| 175 | + if (of_node_name_eq(child, "green")) |
---|
183 | 176 | green_led = of_get_gpio(child, 0); |
---|
184 | | - else if (strcmp(child->name, "red") == 0) |
---|
| 177 | + else if (of_node_name_eq(child, "red")) |
---|
185 | 178 | red_led = of_get_gpio(child, 0); |
---|
186 | 179 | |
---|
187 | 180 | of_node_put(np); |
---|