hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/mips/pci/pci-rt2880.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Ralink RT288x SoC PCI register definitions
34 *
....@@ -5,10 +6,6 @@
56 * Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
67 *
78 * Parts of this file are based on Ralink's 2.6.21 BSP
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms of the GNU General Public License version 2 as published
11
- * by the Free Software Foundation.
129 */
1310
1411 #include <linux/delay.h>
....@@ -208,7 +205,7 @@
208205 {
209206 void __iomem *io_map_base;
210207
211
- rt2880_pci_base = ioremap_nocache(RT2880_PCI_BASE, PAGE_SIZE);
208
+ rt2880_pci_base = ioremap(RT2880_PCI_BASE, PAGE_SIZE);
212209
213210 io_map_base = ioremap(RT2880_PCI_IO_BASE, RT2880_PCI_IO_SIZE);
214211 rt2880_pci_controller.io_map_base = (unsigned long) io_map_base;
....@@ -233,6 +230,8 @@
233230 rt2880_pci_write_u32(PCI_BASE_ADDRESS_0, 0x08000000);
234231 (void) rt2880_pci_read_u32(PCI_BASE_ADDRESS_0);
235232
233
+ rt2880_pci_controller.of_node = pdev->dev.of_node;
234
+
236235 register_pci_controller(&rt2880_pci_controller);
237236 return 0;
238237 }