OSDN Git Service

amd-xgbe: Use proper DT / ACPI precedence checking
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Wed, 30 Sep 2015 13:52:45 +0000 (08:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2015 10:23:22 +0000 (03:23 -0700)
commit47f2e6c27553d9a164bb0067f4c1f9bbba388c2e
treed9310dad5852aad9c37fefcc6e34b881f68a0fd3
parent3947d78a547845fa5a129a39ce0abac2352f7a3a
amd-xgbe: Use proper DT / ACPI precedence checking

Device tree presence takes precedence over ACPI in the device_* APIs.
The amd-xgbe driver should follow the same precedence. Update the check
on whether to use DT / ACPI to follow this.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-main.c