Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc19f5d6 authored by John Crispin's avatar John Crispin Committed by Ralf Baechle
Browse files

MIPS: ralink: Remove check for CONFIG_PCI on non-PCI SoCs



The code currently panics if PCI is enabled but the SoC has no PCI bus.
This check is superfluous as the driver only loads if enabled in the
devicetree.

Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11444/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 37bcc03f
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -535,9 +535,6 @@ void prom_soc_init(struct ralink_soc_info *soc_info)
			ralink_soc = MT762X_SOC_MT7620N;
			name = "MT7620N";
			soc_info->compatible = "ralink,mt7620n-soc";
#ifdef CONFIG_PCI
			panic("mt7620n is only supported for non pci kernels");
#endif
		}
	} else if (n0 == MT7620_CHIP_NAME0 && n1 == MT7628_CHIP_NAME1) {
		u32 efuse = __raw_readl(sysc + SYSC_REG_EFUSE_CFG);