Skip to content

Commit 3f483a3

Browse files
krzkgregkh
authored andcommitted
stmmac: dwmac-loongson: drop useless check for compatible fallback
[ Upstream commit 31fea09 ] Device binds to proper PCI ID (LOONGSON, 0x7a03), already listed in DTS, so checking for some other compatible does not make sense. It cannot be bound to unsupported platform. Drop useless, incorrect (space in between) and undocumented compatible. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Yanteng Si <siyanteng@loongson.cn> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Acked-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent aeb0d50 commit 3f483a3

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ static int loongson_dwmac_probe(struct pci_dev *pdev, const struct pci_device_id
5959
return -ENODEV;
6060
}
6161

62-
if (!of_device_is_compatible(np, "loongson, pci-gmac")) {
63-
pr_info("dwmac_loongson_pci: Incompatible OF node\n");
64-
return -ENODEV;
65-
}
66-
6762
plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL);
6863
if (!plat)
6964
return -ENOMEM;

0 commit comments

Comments
 (0)