diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2015-02-11 05:25:40 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-11 22:39:08 -0500 |
commit | 163cff31de762a4e21df7050e392bf5f30f17e14 (patch) | |
tree | 8986b8c8a11143749041fb288b782b1004730004 /drivers/net/ethernet | |
parent | bc2f3873f74414cdf095b337a73f96262e6aadbc (diff) |
drivers: net: xgene: Make xgene_enet_of_match depend on CONFIG_OF
If CONFIG_NET_XGENE=y but CONFIG_OF=n:
drivers/net/ethernet/apm/xgene/xgene_enet_main.c:1033: warning: ‘xgene_enet_of_match’ defined but not used
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c index 44b15373d6b3..4de62b210c85 100644 --- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c +++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c | |||
@@ -1030,12 +1030,14 @@ static const struct acpi_device_id xgene_enet_acpi_match[] = { | |||
1030 | MODULE_DEVICE_TABLE(acpi, xgene_enet_acpi_match); | 1030 | MODULE_DEVICE_TABLE(acpi, xgene_enet_acpi_match); |
1031 | #endif | 1031 | #endif |
1032 | 1032 | ||
1033 | #ifdef CONFIG_OF | ||
1033 | static struct of_device_id xgene_enet_of_match[] = { | 1034 | static struct of_device_id xgene_enet_of_match[] = { |
1034 | {.compatible = "apm,xgene-enet",}, | 1035 | {.compatible = "apm,xgene-enet",}, |
1035 | {}, | 1036 | {}, |
1036 | }; | 1037 | }; |
1037 | 1038 | ||
1038 | MODULE_DEVICE_TABLE(of, xgene_enet_of_match); | 1039 | MODULE_DEVICE_TABLE(of, xgene_enet_of_match); |
1040 | #endif | ||
1039 | 1041 | ||
1040 | static struct platform_driver xgene_enet_driver = { | 1042 | static struct platform_driver xgene_enet_driver = { |
1041 | .driver = { | 1043 | .driver = { |