hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/arch/mips/ar7/platform.c
....@@ -1,20 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2006,2007 Felix Fietkau <nbd@openwrt.org>
34 * Copyright (C) 2006,2007 Eugene Konev <ejka@openwrt.org>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
185 */
196
207 #include <linux/init.h>
....@@ -683,7 +670,7 @@
683670
684671 if (ar7_has_high_cpmac()) {
685672 res = fixed_phy_add(PHY_POLL, cpmac_high.id,
686
- &fixed_phy_status, -1);
673
+ &fixed_phy_status);
687674 if (!res) {
688675 cpmac_get_mac(1, cpmac_high_data.dev_addr);
689676
....@@ -696,7 +683,7 @@
696683 } else
697684 cpmac_low_data.phy_mask = 0xffffffff;
698685
699
- res = fixed_phy_add(PHY_POLL, cpmac_low.id, &fixed_phy_status, -1);
686
+ res = fixed_phy_add(PHY_POLL, cpmac_low.id, &fixed_phy_status);
700687 if (!res) {
701688 cpmac_get_mac(0, cpmac_low_data.dev_addr);
702689 res = platform_device_register(&cpmac_low);
....@@ -715,7 +702,7 @@
715702 pr_warn("unable to register usb slave: %d\n", res);
716703
717704 /* Register watchdog only if enabled in hardware */
718
- bootcr = ioremap_nocache(AR7_REGS_DCL, 4);
705
+ bootcr = ioremap(AR7_REGS_DCL, 4);
719706 val = readl(bootcr);
720707 iounmap(bootcr);
721708 if (val & AR7_WDT_HW_ENA) {