* [PATCH] drivers: net: xgene: Make xgene_enet_of_match depend on CONFIG_OF
@ 2015-02-11 10:25 Geert Uytterhoeven
2015-02-12 3:39 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2015-02-11 10:25 UTC (permalink / raw)
To: David S. Miller, Iyappan Subramanian, Keyur Chudgar, Feng Kan
Cc: netdev, linux-kernel, Geert Uytterhoeven
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>
---
drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c
index 44b15373d6b3e628..4de62b210c85bab8 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[] = {
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 = {
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drivers: net: xgene: Make xgene_enet_of_match depend on CONFIG_OF
2015-02-11 10:25 [PATCH] drivers: net: xgene: Make xgene_enet_of_match depend on CONFIG_OF Geert Uytterhoeven
@ 2015-02-12 3:39 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-02-12 3:39 UTC (permalink / raw)
To: geert; +Cc: isubramanian, kchudgar, fkan, netdev, linux-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: Text/Plain; charset=iso-8859-7, Size: 472 bytes --]
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Wed, 11 Feb 2015 11:25:40 +0100
> 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>
Applied.
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-12 3:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-11 10:25 [PATCH] drivers: net: xgene: Make xgene_enet_of_match depend on CONFIG_OF Geert Uytterhoeven
2015-02-12 3:39 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).