hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/sparc/kernel/of_device_common.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/string.h>
23 #include <linux/kernel.h>
34 #include <linux/of.h>
....@@ -66,6 +67,7 @@
6667 op->dev.archdata.stc = bus_sd->stc;
6768 op->dev.archdata.host_controller = bus_sd->host_controller;
6869 op->dev.archdata.numa_node = bus_sd->numa_node;
70
+ op->dev.dma_ops = bus->dev.dma_ops;
6971
7072 if (dp->child)
7173 of_propagate_archdata(op);
....@@ -151,8 +153,8 @@
151153 struct device_node *dp = np;
152154
153155 while (dp) {
154
- if (!strcmp(dp->name, "sbus") ||
155
- !strcmp(dp->name, "sbi"))
156
+ if (of_node_name_eq(dp, "sbus") ||
157
+ of_node_name_eq(dp, "sbi"))
156158 return 1;
157159
158160 /* Have a look at use_1to1_mapping(). We're trying