drivers: net: xgene: Make xgene_enet_of_match depend on CONFIG_OF
PATCH 1/1 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 <[email protected]>
--- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/apm/xgene/xgene_enet_main.c +2 -0
@@ -1030,12 +1030,14 @@ static const struct acpi_device_id xgene_enet_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, xgene_enet_acpi_match);#endif +#ifdef CONFIG_OF static struct of_device_id xgene_enet_of_match[] = { {.compatible ="apm,xgene-enet" ,}, {}, };MODULE_DEVICE_TABLE (of, xgene_enet_of_match); +#endif static struct platform_driver xgene_enet_driver = { .driver = {
Signature · 1 line
1.9.1
From: Geert Uytterhoeven <[email protected]>
Date: Wed, 11 Feb 2015 11:25:40 +0100
Quoted 5 lines
If
CONFIG_NET_XGENE=ybutCONFIG_OF=n:
drivers/net/ethernet/apm/xgene/xgene_enet_main.c:1033: warning: ‘xgene_enet_of_match’ defined but not usedSigned-off-by Geert Uytterhoeven <[email protected]>
Applied. �τθΊ{.nΗ+·�+%Λ�±ιέΆ�w�Ί{.nΗ+·�{±ώG«ι�{ayΊΚΪλ,j’f£’·hοκ�κηz_θ�(ιέ’j"ϊΆm§��Ύ«ώG«ι�’Έ?¨θΪ&£ψ§~αΆiOζ¬z·vΨ^Άm§��Γ�Άμ�’Έ?I�