hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/mips/bcm47xx/setup.c
....@@ -141,14 +141,14 @@
141141
142142 /*
143143 * Memory setup is done in the early part of MIPS's arch_mem_init. It's supposed
144
- * to detect memory and record it with add_memory_region.
144
+ * to detect memory and record it with memblock_add.
145145 * Any extra initializaion performed here must not use kmalloc or bootmem.
146146 */
147147 void __init plat_mem_setup(void)
148148 {
149149 struct cpuinfo_mips *c = &current_cpu_data;
150150
151
- if ((c->cputype == CPU_74K) || (c->cputype == CPU_1074K)) {
151
+ if (c->cputype == CPU_74K) {
152152 pr_info("Using bcma bus\n");
153153 #ifdef CONFIG_BCM47XX_BCMA
154154 bcm47xx_bus_type = BCM47XX_BUS_TYPE_BCMA;
....@@ -274,7 +274,7 @@
274274 bcm47xx_leds_register();
275275 bcm47xx_workarounds();
276276
277
- fixed_phy_add(PHY_POLL, 0, &bcm47xx_fixed_phy_status, -1);
277
+ fixed_phy_add(PHY_POLL, 0, &bcm47xx_fixed_phy_status);
278278 return 0;
279279 }
280280 device_initcall(bcm47xx_register_bus_complete);