ftgmac100: Use device "compatible" property, not machine.
We test for aspeed chips to handle a couple of special cases, but we do that by checking the machine type which isn't right. Instead check the actual device compatible property. This also updates the dtsi files for the aspeed SoC to match. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
05690d633f
commit
78d28543a6
@ -33,7 +33,7 @@
|
||||
};
|
||||
|
||||
mac0: ethernet@1e660000 {
|
||||
compatible = "faraday,ftgmac100";
|
||||
compatible = "aspeed,ast2500-mac", "faraday,ftgmac100";
|
||||
reg = <0x1e660000 0x180>;
|
||||
interrupts = <2>;
|
||||
no-hw-checksum;
|
||||
@ -41,7 +41,7 @@
|
||||
};
|
||||
|
||||
mac1: ethernet@1e680000 {
|
||||
compatible = "faraday,ftgmac100";
|
||||
compatible = "aspeed,ast2500-mac", "faraday,ftgmac100";
|
||||
reg = <0x1e680000 0x180>;
|
||||
interrupts = <3>;
|
||||
no-hw-checksum;
|
||||
|
||||
Reference in New Issue
Block a user