Skip to content

Commit 31fea09

Browse files
krzkdavem330
authored andcommitted
stmmac: dwmac-loongson: drop useless check for compatible fallback
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 <[email protected]> Signed-off-by: Yanteng Si <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Acked-by: Jiaxun Yang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e87d3a1 commit 31fea09

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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)