drivers: net: xgene: fix kbuild warnings
[linux-2.6-block.git] / drivers / net / ethernet / apm / xgene / xgene_enet_main.c
index 735d7c6e5686eacdd2dad4d5119505490749af14..1bb317532f75f5c1166b0b32041db6d7a6206cc8 100644 (file)
@@ -1173,7 +1173,9 @@ static int xgene_enet_probe(struct platform_device *pdev)
        struct xgene_enet_pdata *pdata;
        struct device *dev = &pdev->dev;
        struct xgene_mac_ops *mac_ops;
+#ifdef CONFIG_OF
        const struct of_device_id *of_id;
+#endif
        int ret;
 
        ndev = alloc_etherdev(sizeof(struct xgene_enet_pdata));